db_exec_plpgsql (private)

 db_exec_plpgsql db statement_name pre_sql fname

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

PostgreSQL only.

A helper procedure to execute a SQL statement, potentially binding depending on the value of the $bind variable in the calling environment (if set).

Low level replacement for db_exec which replaces inline code with a proc. db proc is dropped after execution. This is a temporary fix until we can port all of the db_exec_plsql calls to simple selects of the inline code wrapped in function calls.

emulation of plsql calls from oracle. This routine takes the plsql statements and wraps them in a function call, calls the function, and then drops the function. Future work might involve converting this to cache the function calls

This proc is private - use db_exec_plsql instead!

Parameters:
db
statement_name
pre_sql
fname
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 db_exec_plsql db_exec_plsql (public) db_exec_plpgsql db_exec_plpgsql db_exec_plsql->db_exec_plpgsql db_bind_var_substitution db_bind_var_substitution (public) db_exec_plpgsql->db_bind_var_substitution db_nextval db_nextval (public) db_exec_plpgsql->db_nextval db_qd_replace_sql db_qd_replace_sql (public) db_exec_plpgsql->db_qd_replace_sql ds_collect_db_call ds_collect_db_call (public) db_exec_plpgsql->ds_collect_db_call ns_dbquotevalue ns_dbquotevalue db_exec_plpgsql->ns_dbquotevalue

Testcases:
No testcase defined.
[ show source ]
Show another procedure: