Re: Function working in PostgreSQL 8.3.6 and not in 7.4.8

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: slapo(at)centrum(dot)sk
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Function working in PostgreSQL 8.3.6 and not in 7.4.8
Date: 2009-04-11 20:57:22
Message-ID: 7303.1239483442@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

<slapo(at)centrum(dot)sk> writes:
> It's my second function in pg/plsql I've created and I don't really know why there are no results being returned in 7.4.8.

RETURN QUERY doesn't exist in 7.4, and unfortunately the syntax checking
in that ancient version isn't very tight. In a function returning set,
it just ignores anything after RETURN unless it's RETURN NEXT. So it
just sees a RETURN command telling it to exit.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message slapo 2009-04-11 21:30:50 Re: Function working in PostgreSQL 8.3.6 and not in 7.4.8
Previous Message slapo 2009-04-11 20:41:41 Function working in PostgreSQL 8.3.6 and not in 7.4.8