Re: Do not understand "SETOF RECORD" - therefore can not use ODBC-link - Mailing list pgsql-sql

From Harrie Rodenbach
Subject Re: Do not understand "SETOF RECORD" - therefore can not use ODBC-link
Date
Msg-id AANLkTinHaKeMsi6WDBqa_wHlL5xK8isjKSp41shrz8gZ@mail.gmail.com
Whole thread Raw
In response to Re: Do not understand "SETOF RECORD" - therefore can not use ODBC-link  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: Reinier Suurenbroek
Date:
Subject: ODBC-link returns zero rows, allthough query should return 3 rows
Next
From: Anton Prokofiev
Date:
Subject: return %ROWTYPE from function