From: Harrie Rodenbach <marktenveiling@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Do not understand "SETOF RECORD" - therefore can not use ODBC-link
Date: Fri, 28 May 2010 09:32:40 +0200
Message-ID: <AANLkTinHaKeMsi6WDBqa_wHlL5xK8isjKSp41shrz8gZ@mail.gmail.com> (raw)
In-Reply-To: <14477.1274969142@sss.pgh.pa.us>
References: <AANLkTiklp-KIa3BSvnVmHWMQFd7fgnYeviSxo1RoQa3W@mail.gmail.com>
<14477.1274969142@sss.pgh.pa.us>
Hi,
2010/5/27 Tom Lane <tgl@sss.pgh.pa.us>:
> Harrie Rodenbach <marktenveiling@gmail.com> writes:
>> = oratest=# select odbclink.query(1, 'SELECT * FROM mytable') as
>> result(id int4, t text, d decimal); = ERROR: syntax error at or near
>> "(" = LINE 1: ...bclink.query(1, 'SELECT * FROM mytable') as
>> result(id int4, ...
>
> You need that to be select * from odbclink.query ...
> the "as" business is only allowed in FROM clause.
>
> regards, tom lane
>
That did the trick, thank you Tom. Next problem will be described in a
new thread.
--
Met vriendelijke groet / with kind regards,
Harrie Rodenbach
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: marktenveiling@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: Do not understand "SETOF RECORD" - therefore can not use ODBC-link
In-Reply-To: <AANLkTinHaKeMsi6WDBqa_wHlL5xK8isjKSp41shrz8gZ@mail.gmail.com>
* 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