Re: parse error when calling function in plpgsql - Mailing list pgsql-sql

From Tom Lane
Subject Re: parse error when calling function in plpgsql
Date
Msg-id 7882.1047930513@sss.pgh.pa.us
Whole thread Raw
In response to parse error when calling function in plpgsql  ("David Witham" <davidw@unidial.com.au>)
List pgsql-sql
"David Witham" <davidw@unidial.com.au> writes:
>     myrec record;
> ...
> select * into myrec from myfunc(...params...) as (col1 real,col2 integer);

> but I keep getting a parse error:

> WARNING:  Error occurred while executing PL/pgSQL function myparentfunc
> WARNING:  line 27 at select into variables
> ERROR:  parser: parse error at or near "$1" at character 72

I doubt this has anything to do with the function per se.  I'd check for
a conflict between the names you are using as plpgsql variables and the
names mentioned in this SELECT.
        regards, tom lane


pgsql-sql by date:

Previous
From: Tomasz Myrta
Date:
Subject: Re: Howto??
Next
From: Bruce Momjian
Date:
Subject: Re: btree_gist, gint4_union