pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedQuery batches and SQLMoreResults
2+ messages / 2 participants
[nested] [flat]
* Query batches and SQLMoreResults
@ 2006-12-18 19:00 Michael Kochetkov <mkochetkov@hotmail.com>
2006-12-19 03:35 ` Re: Query batches and SQLMoreResults Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 2+ messages in thread
From: Michael Kochetkov @ 2006-12-18 19:00 UTC (permalink / raw)
To: pgsql-odbc
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...
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Query batches and SQLMoreResults
2006-12-18 19:00 Query batches and SQLMoreResults Michael Kochetkov <mkochetkov@hotmail.com>
@ 2006-12-19 03:35 ` Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 0 replies; 2+ messages in thread
From: Hiroshi Inoue @ 2006-12-19 03:35 UTC (permalink / raw)
To: Michael Kochetkov <mkochetkov@hotmail.com>; +Cc: pgsql-odbc
Michael Kochetkov wrote:
> 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?
Please try the snapshot dll at
http://www.geocities.jp/inocchichichi/psqlodbc/index.html
.
At least SQLDescribeCol would return correct result.
SQLNumParams doesn't work properly though.
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-12-19 03:35 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-12-18 19:00 Query batches and SQLMoreResults Michael Kochetkov <mkochetkov@hotmail.com>
2006-12-19 03:35 ` Hiroshi Inoue <inoue@tpf.co.jp>
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