Re: plpgsql For SQLQuery Loop Flags Error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Puneet Paul <paulptech(at)yahoo(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: plpgsql For SQLQuery Loop Flags Error
Date: 2003-12-18 15:54:55
Message-ID: 19964.1071762895@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Puneet Paul <paulptech(at)yahoo(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2003-12-18 17:32:25 Re: [BUGS] pg_service.conf ignores dbname parameter
Previous Message Tom Lane 2003-12-18 15:49:04 Re: Urgent: Key constraints behaving weirdly