Re: [BUGS] BUG #2108: Function with OUT parameters not recognized,

2005-12-13 Thread Tony S
Alvaro Herrera wrote: > Stallone wrote: > > Please keep replies on the list. > > >>What you have done is run a SELECT which evaluates the function >>f_multiparam() passing it two parameters, and then takes the result and >>puts it INTO a local parameter. This is not the same. An OUT parameter

Re: [BUGS] BUG #2108: Function with OUT parameters not recognized, using plpgsql

2005-12-12 Thread Alvaro Herrera
Tony wrote: > CREATE OR REPLACE FUNCTION f_multiparam ( > i1 integer, > i2 varchar, > OUT o1 varchar > ) AS > $$ > BEGIN > o1 := 'i2 was ' || i2; > END; > $$ > LANGUAGE plpgsql; > > CREATE OR REPLACE FUNCTION f_showperformstatus () RETURNS varchar AS > $$ > DECLARE > outparameter varcha

Re: [BUGS] BUG #2108: Function with OUT parameters not recognized, using plpgsql

2005-12-12 Thread Tom Lane
"Tony" <[EMAIL PROTECTED]> writes: > Defined a function with OUT paramter. Attempts to call it fail as the > function can not be found. Apparently, you don't understand how OUT parameters work either :-( Perhaps the examples here will help: http://www.postgresql.org/docs/8.1/static/xfunc-sql.html

[BUGS] BUG #2108: Function with OUT parameters not recognized, using plpgsql

2005-12-12 Thread Tony
The following bug has been logged online: Bug reference: 2108 Logged by: Tony Email address: [EMAIL PROTECTED] PostgreSQL version: 8.1.0 Operating system: Debian 1:3.3.5-8ubuntu2, 2.6.10-5-k7, i686 Description:Function with OUT parameters not recognized, using plpgsql