Re: parse error when calling function in plpgsql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David Witham" <davidw(at)unidial(dot)com(dot)au>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: parse error when calling function in plpgsql
Date: 2003-03-17 19:48:33
Message-ID: 7882.1047930513@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"David Witham" <davidw(at)unidial(dot)com(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 2003-03-17 19:59:46 Re: btree_gist, gint4_union
Previous Message Tomasz Myrta 2003-03-17 19:06:41 Re: Howto??