X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 170E09DC837 for ; Wed, 25 Jan 2006 18:50:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 93287-06 for ; Wed, 25 Jan 2006 18:50:36 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id 743C89DC80D for ; Wed, 25 Jan 2006 18:50:29 -0400 (AST) Received: from soptik.pzkagis.cz (localhost.localdomain [127.0.0.1]) by smtp.pzkagis.cz (8.13.1/8.13.1) with ESMTP id k0PMoTq1008156 for ; Wed, 25 Jan 2006 23:50:29 +0100 Received: (from luf@localhost) by soptik.pzkagis.cz (8.13.1/8.13.1/Submit) id k0PMoTPt008155 for pgsql-odbc@postgresql.org; Wed, 25 Jan 2006 23:50:29 +0100 Date: Wed, 25 Jan 2006 23:50:29 +0100 From: Ludek Finstrle To: pgsql-odbc@postgresql.org Subject: Disallow premature is broken Message-ID: <20060125225029.GA7678@soptik.pzkagis.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on smtp.pzkagis.cz X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.085 required=5 tests=[AWL=0.085] X-Spam-Score: 0.085 X-Spam-Level: X-Archive-Number: 200601/246 X-Sequence-Number: 7061 Hello, Dmitry pointed me that Disallow premature is next broken feature. I found next difference between old driver and new one. When there are more statements in one (using semicolon ';') that 07.03 driver returns more results QResultClass. The 08.01 one returns only one QResultClass. The example of such mutlistatement is: "BEGIN; SELECT * FROM table; COMMIT". The old driver returns 3 QResultClass but 08.01 driver returns only last result (from COMMIT) QResultClass. This behaviour breaks Disallow premature so it fails with access violation. I can fix it becouse now we are using PQgetResult. But I'm not sure if it doesn't break something another. I could fix a little the Disallow premature so it doesn't fail with access violation but it doesn't work at all. What do you think? How do we want change the behaviout before releasing new stable release? I'm not sure. There is no much time for testing new behaviour. The multistatements hasn't been reported yet by users. It seems this feature isn't widely used. Regards, Luf