From: Tom Lane <tgl@sss.pgh.pa.us>
To: Harrie Rodenbach <marktenveiling@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Do not understand "SETOF RECORD" - therefore can not use ODBC-link
Date: Thu, 27 May 2010 10:05:42 -0400
Message-ID: <14477.1274969142@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTiklp-KIa3BSvnVmHWMQFd7fgnYeviSxo1RoQa3W@mail.gmail.com>
References: <AANLkTiklp-KIa3BSvnVmHWMQFd7fgnYeviSxo1RoQa3W@mail.gmail.com>
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
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, marktenveiling@gmail.com
Subject: Re: Do not understand "SETOF RECORD" - therefore can not use ODBC-link
In-Reply-To: <14477.1274969142@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