db_write_clob (public)

 db_write_clob [ -dbn dbn ] statement_name sql [ args... ]

Defined in packages/acs-tcl/tcl/01-database-procs.tcl

Switches:
-dbn (optional)
The database name to use. If empty_string, uses the default database.
Parameters:
statement_name (required)
sql (required)

Partial Call Graph (max 5 caller/called nodes):
%3 ad_arg_parser ad_arg_parser (public) db_driverkey db_driverkey (public) db_exec db_exec (public) db_qd_get_fullname db_qd_get_fullname (public) db_with_handle db_with_handle (public) db_write_clob db_write_clob db_write_clob->ad_arg_parser db_write_clob->db_driverkey db_write_clob->db_exec db_write_clob->db_qd_get_fullname db_write_clob->db_with_handle

Testcases:
No testcase defined.
Source code:
    ad_arg_parser { bind } $args
    set proc_name {db_write_clob}
    set driverkey [db_driverkey $dbn]

    # TODO: Below, is db_qd_get_fullname necessary?  Why this
    # difference between Oracle and Postgres code?
    # --atp@piskorski.com, 2003/04/09 10:00 EDT

    switch -- $driverkey {
        oracle {
            set full_statement_name [db_qd_get_fullname $statement_name]
            db_with_handle -dbn $dbn db {
                db_exec write_clob $db $full_statement_name $sql
            }
        }

        postgresql {
            db_with_handle -dbn $dbn db {
                db_exec write_clob $db $statement_name $sql
            }
        }

        nsodbc -
        default {
            error "$proc_name is not supported for this database."
        }
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: