Re: [GENERAL] basics on User Defined Functions

2004-09-21 Thread Gaetano Mendola
Dennis Gearon wrote: Is this the correct way to return values in a record from a UDF in 7.4.+ ? Is it ok to modify the arguments as in 'arg_int'? -- return type should be RECORD -- CREATE OR REPLACE FUNCTION test_function( int ) RETURNS RECORD AS ' DECLARE arg_int ALIAS FOR $1;

[GENERAL] basics on User Defined Functions

2004-09-20 Thread Dennis Gearon
Is this the correct way to return values in a record from a UDF in 7.4.+ ? Is it ok to modify the arguments as in 'arg_int'? -- return type should be RECORD -- CREATE OR REPLACE FUNCTION test_function( int ) RETURNS RECORD AS ' DECLARE arg_int ALIAS FOR $1; var_record_out