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 6D9FF9DC97E for ; Sat, 28 Jan 2006 17:25:24 -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 65003-06 for ; Sat, 28 Jan 2006 17:25:25 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by postgresql.org (Postfix) with ESMTP id 4799A9DC813 for ; Sat, 28 Jan 2006 17:25:22 -0400 (AST) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=vale-housing.co.uk) by anchor-post-30.mail.demon.net with esmtp (Exim 4.42) id 1F2xZT-000JJP-1Y for pgsql-odbc@postgresql.org; Sat, 28 Jan 2006 21:25:23 +0000 Received: from 84.13.241.123 ([84.13.241.123]) by ratbert.vale-housing.co.uk ([192.168.1.106]) with Microsoft Exchange Server HTTP-DAV ; Sat, 28 Jan 2006 21:25:23 +0000 User-Agent: Microsoft-Entourage/11.2.1.051004 Date: Sat, 28 Jan 2006 21:25:58 +0000 Subject: Re: Disallow premature is broken From: Dave Page To: Ludek Finstrle CC: Message-ID: Thread-Topic: [ODBC] Disallow premature is broken Thread-Index: AcYjkm2E721858LqTCevnp50ca+LiwAvwBOn In-Reply-To: <20060127223839.GA21342@soptik.pzkagis.cz> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.321 required=5 tests=[AWL=0.068, RCVD_NUMERIC_HELO=1.253] X-Spam-Score: 1.321 X-Spam-Level: * X-Archive-Number: 200601/302 X-Sequence-Number: 7117 On 27/1/06 22:38, "Ludek Finstrle" wrote: > Fri, Jan 27, 2006 at 09:39:05AM -0000, Dave Page wrote: >>> 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. >> >> In the short term though, I say just stop it crashing and let's get a >> release out seeing as Tom is getting antsy about FC5 :-) > > Here is the patch. I'll include it into 08.01.0108 dev snapshot. > psqlodbc doesn't fall down on exception when "Disallow premature" > is checked and: SQLPrepare, SQLNumResultCols is called. > The SQLNumResultCols returns SQLSTATE HY0000 with message like > No result was returned by the query. > > Please review and comment Looks like a perfectly fine temporary fix. Regards, Dave.