plpgsql_utility::generate_attribute_parameters (public)
plpgsql_utility::generate_attribute_parameters [ -indent indent ] \ attr_list
Defined in packages/acs-subsite/tcl/plpgsql-utility-procs.tcl
Generates the arg list to a pl/sql function or procedure
- Switches:
- -indent (optional, defaults to
"4"
)- Parameters:
- attr_list (required)
- Author:
- Michael Bryzek <mbryzek@arsdigita.com>
- Created:
- 11/2000
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set pieces [list] set arg_num 0 foreach triple $attr_list { incr arg_num set attr [string toupper [string trim [lindex $triple 1]]] lappend pieces [list "p_${attr}" "alias for \$${arg_num}"] } return [plsql_utility::format_pieces -indent $indent -line_term ";" $pieces]XQL Not present: Generic, Oracle PostgreSQL XQL file: packages/acs-subsite/tcl/plpgsql-utility-procs-postgresql.xql