Re: Do not understand "SETOF RECORD" - therefore can not use ODBC-link

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Harrie Rodenbach <marktenveiling(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Do not understand "SETOF RECORD" - therefore can not use ODBC-link
Date: 2010-05-27 14:05:42
Message-ID: 14477.1274969142@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Harrie Rodenbach <marktenveiling(at)gmail(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message A. Kretschmer 2010-05-27 14:09:23 Re: Question about slow queries...
Previous Message Tom Lane 2010-05-27 14:03:28 Re: Question about slow queries...