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
(defaults to "4") (optional)
Parameters:
attr_list
Author:
Michael Bryzek <mbryzek@arsdigita.com>
Created:
11/2000

Partial Call Graph (max 5 caller/called nodes):
%3 plsql_utility::format_pieces plsql_utility::format_pieces (private) plpgsql_utility::generate_attribute_parameters plpgsql_utility::generate_attribute_parameters plpgsql_utility::generate_attribute_parameters->plsql_utility::format_pieces

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

[ hide source ] | [ make this the default ]
Show another procedure: