Re: ODBC driver and refcursors - Mailing list pgsql-odbc

From Farooq
Subject Re: ODBC driver and refcursors
Date
Msg-id 12461.64474.qm@web45115.mail.sp1.yahoo.com
Whole thread Raw
In response to ODBC driver and refcursors  (Farooq <shorrt_circuit@yahoo.com>)
Responses Re: ODBC driver and refcursors
List pgsql-odbc


--- On Mon, 6/1/09, Craig Ringer <craig@postnewspapers.com.au> wrote:

> From: Craig Ringer <craig@postnewspapers.com.au>
> Subject: Re: [ODBC] ODBC driver and refcursors
> To: "Farooq" <shorrt_circuit@yahoo.com>
> Cc: pgsql-odbc@postgresql.org
> Date: Monday, June 1, 2009, 5:49 PM
> Farooq wrote:
>
> >> select * from test_cursor('curs',3);
> >> fetch all in "curs";
> >>
> >> With 8.1 odbc driver, I get the below rows:
> >>
> >> userid  |  username
> >> --------------------
> >> 4    |  user4
> >> 5    |  user5
> >>
> >> And with 8.3 odbc driver, I get
> >>
> >> test_cursor
> >> ---------------
> >> curs
>
> Try dispatching this in two separate calls, instead of a
> single string
> containing two semicolon-separated statements.
>

With two separate calls; the second statement complains that the cursor does not exist.


> I have the vague feeling the ODBC driver may have options
> that affect
> multi-statement queries.
>
>
> --
> Craig Ringer
>
> --
> Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-odbc
>





pgsql-odbc by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: ODBC driver and refcursors
Next
From: Farooq
Date:
Subject: Re: ODBC driver and refcursors