plpgsql_utility::generate_function_signature (public)

 plpgsql_utility::generate_function_signature [ -named ] attr_list

Defined in packages/acs-subsite/tcl/plpgsql-utility-procs.tcl

Generates the signature for a pl/sql function or procedure. Named signatures use arg_ prefixes to leave the p_ aliases used by generated function bodies available.

Switches:
-named (optional, boolean)
Include names in the function signature.
Parameters:
attr_list (required)
Author:
Steve Woodcock <swoodcock@scholastic.co.uk>
Created:
07/2001

Partial Call Graph (max 5 caller/called nodes):
db_column_type db_column_type (public) plpgsql_utility::generate_function_signature plpgsql_utility::generate_function_signature plpgsql_utility::generate_function_signature->db_column_type

Testcases:
No testcase defined.
Source code:
        set pieces [list]
        foreach triple $attr_list {
            set table [string toupper [string trim [lindex $triple 0]]]
            set attr [string toupper [string trim [lindex $triple 1]]]
            set datatype [db_column_type -complain $table $attr]
            if {$named_p} {
                lappend pieces "arg_[string tolower $attr] $datatype"
            } else {
                lappend pieces $datatype
            }
        }
        return [join $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: