pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Michael Kochetkov <mkochetkov@hotmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Query batches and SQLMoreResults
Date: Tue, 19 Dec 2006 12:35:15 +0900
Message-ID: <45875DF3.6040001@tpf.co.jp> (raw)
In-Reply-To: <BAY114-F8B0EFC39EC4E8FAEAF295CEC90@phx.gbl>
References: <BAY114-F8B0EFC39EC4E8FAEAF295CEC90@phx.gbl>

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



view thread (2+ messages)

Message-ID: <45875DF3.6040001@tpf.co.jp>
Permalink:  ../45875DF3.6040001@tpf.co.jp/
Also on:    postgresql.org/message-id/45875DF3.6040001@tpf.co.jp

 · 

reply

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: inoue@tpf.co.jp, mkochetkov@hotmail.com
  Subject: Re: Query batches and SQLMoreResults
  In-Reply-To: <45875DF3.6040001@tpf.co.jp>
  References: <BAY114-F8B0EFC39EC4E8FAEAF295CEC90@phx.gbl> <45875DF3.6040001@tpf.co.jp>

* 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