From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Huxton <dev@archonet.com>
Cc: Yura Gal <yuragal@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: RETURN QUERY generates error
Date: Thu, 06 Mar 2008 13:14:15 -0500
Message-ID: <19149.1204827255@sss.pgh.pa.us> (raw)
In-Reply-To: <47CFAA53.7010309@archonet.com>
References: <3b6c69d80803052345g31af3b74k6b8878c65197d621@mail.gmail.com>
<47CFAA53.7010309@archonet.com>
Richard Huxton <dev@archonet.com> writes:
> Yura Gal wrote:
>> all is fine until the last IF. Both RETURN QUERY blocks generate
>> error: 'syntax error at or near SELECT ...' I feel that something
>> wrong with casting _sequence var but I can't figure out the exact
>> point.
> Can't think why it's not happy - if I create an empty table to go with
> it, it runs here.
The error sounds suspiciously like what would happen if you tried to
use RETURN QUERY in a pre-8.3 version.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, dev@archonet.com, yuragal@gmail.com
Subject: Re: RETURN QUERY generates error
In-Reply-To: <19149.1204827255@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox