From: Michael Kochetkov <mkochetkov@hotmail.com>
To: pgsql-odbc@postgresql.org
Subject: Query batches and SQLMoreResults
Date: Mon, 18 Dec 2006 19:00:38 +0000
Message-ID: <BAY114-F8B0EFC39EC4E8FAEAF295CEC90@phx.gbl> (raw)
Hello,
let us consider the following test case. There are two tables T1 that has
int and varchar fields and T2 that has varchar, datatime and blob fields.
Then we have a query batch like this:
select * from T1;
select * from T2
It executes with ODBC and gets the first recordset as expected. But then I
have problems. SQLMoreResults says there is another recordset.
SQLNumResultCols says there are 3 columns indeed. But subsequent
SQLDescribeCol calls return wrond descriptions. The first call for it says,
for example, that the first field of the second recordset is of type
SQL_INTEGER while I expect it to be varchar. And subsequent SQLFetch fails.
I use the latest PostgreSQL 8.2 binaries for Win32.
So, does current PostgreSQL ODBC driver supports query batches and
SQLMoreResults?
Thank you in advance,
--
Michael Kochetkov
_________________________________________________________________
All-in-one security and maintenance for your PC. Get a free 90-day trial!
http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http://clk.atdmt.com/MSN/go/msnnkw...
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: mkochetkov@hotmail.com
Subject: Re: Query batches and SQLMoreResults
In-Reply-To: <BAY114-F8B0EFC39EC4E8FAEAF295CEC90@phx.gbl>
References: <BAY114-F8B0EFC39EC4E8FAEAF295CEC90@phx.gbl>
* 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