Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 2C71C9FA3AD for ; Mon, 18 Dec 2006 15:00:55 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 51134-02 for ; Mon, 18 Dec 2006 15:00:39 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from bay0-omc3-s17.bay0.hotmail.com (bay0-omc3-s17.bay0.hotmail.com [65.54.246.217]) by postgresql.org (Postfix) with ESMTP id 797849FA394 for ; Mon, 18 Dec 2006 15:00:40 -0400 (AST) Received: from hotmail.com ([65.54.169.18]) by bay0-omc3-s17.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Mon, 18 Dec 2006 11:00:39 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 18 Dec 2006 11:00:39 -0800 Message-ID: Received: from 65.54.169.200 by by114fd.bay114.hotmail.msn.com with HTTP; Mon, 18 Dec 2006 19:00:38 GMT X-Originating-IP: [212.248.31.98] X-Originating-Email: [mkochetkov@hotmail.com] X-Sender: mkochetkov@hotmail.com From: "Michael Kochetkov" To: pgsql-odbc@postgresql.org Subject: Query batches and SQLMoreResults Date: Mon, 18 Dec 2006 19:00:38 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 18 Dec 2006 19:00:39.0356 (UTC) FILETIME=[CEF077C0:01C722D6] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.161 tagged_above=0 required=5 tests=BAYES_50, MSGID_FROM_MTA_HEADER, SPF_PASS, URI_NO_WWW_ANY_CGI X-Spam-Level: X-Archive-Number: 200612/75 X-Sequence-Number: 8522 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/msnnkwlo0050000001msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail