Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id CF8999F9386 for ; Mon, 18 Dec 2006 23:35:26 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 04603-06 for ; Mon, 18 Dec 2006 23:35:13 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sd.tpf.co.jp (mail.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 0DA179F9398 for ; Mon, 18 Dec 2006 23:35:18 -0400 (AST) Received: (qmail 19648 invoked from network); 19 Dec 2006 12:35:16 +0900 Received: from unknown (HELO ?100.0.32.170?) (100.0.32.170) by sd2.tpf-fw-c.co.jp with SMTP; 19 Dec 2006 12:35:16 +0900 Message-ID: <45875DF3.6040001@tpf.co.jp> Date: Tue, 19 Dec 2006 12:35:15 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Michael Kochetkov CC: pgsql-odbc@postgresql.org Subject: Re: Query batches and SQLMoreResults References: In-Reply-To: Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/79 X-Sequence-Number: 8526 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