Re: plpgsql For SQLQuery Loop Flags Error - Mailing list pgsql-bugs

From Tom Lane
Subject Re: plpgsql For SQLQuery Loop Flags Error
Date
Msg-id 19964.1071762895@sss.pgh.pa.us
Whole thread Raw
In response to plpgsql For SQLQuery Loop Flags Error  (Puneet Paul <paulptech@yahoo.com>)
List pgsql-bugs
Puneet Paul <paulptech@yahoo.com> writes:
>  DECLARE
>      curTrackList char(15) ALIAS for $1;
>     sliceFile varchar ALIAS for $2;
>     lmfpLimit integer ALIAS for $3
>     mTrackDet RECORD;

If that's an accurate copy of your function, then the problem is likely
the lack of a semicolon on the lmfpLimit line.  I'm not sure why you
don't get a syntax error, but evidently the "mTrackDet RECORD" is
getting treated as a noise phrase in the lmfpLimit declaration.

What Postgres version is this, anyway?  The current sources do not look
like they'd accept such a thing without raising an error, but possibly
older releases would.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Urgent: Key constraints behaving weirdly
Next
From: Tom Lane
Date:
Subject: Re: libpq3 + ssl memory leak