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

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

Hi,

2010/5/27 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> 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
>
That did the trick, thank you Tom. Next problem will be described in a
new thread.

--
Met vriendelijke groet / with kind regards,

Harrie Rodenbach

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Reinier Suurenbroek 2010-05-28 08:07:45 ODBC-link returns zero rows, allthough query should return 3 rows
Previous Message Brent DeSpain 2010-05-27 22:55:55 Re: Extending Regular Expression bounds limit of 255.