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 0D1389DCB81 for ; Fri, 9 Dec 2005 02:53:54 -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 06283-08 for ; Fri, 9 Dec 2005 02:53:52 -0400 (AST) X-Greylist: delayed 20:50:20.643494 by SQLgrey- Received: from gate.solvo.ru (gate.solvo.ru [195.201.44.254]) by postgresql.org (Postfix) with ESMTP id B72CA9DCB4E for ; Fri, 9 Dec 2005 02:53:50 -0400 (AST) Received: from tiger.solvo.ru (tiger.solvo.ru [195.201.44.86]) by gate.solvo.ru (8.12.8/8.12.8) with ESMTP id jB96rkpv008058; Fri, 9 Dec 2005 09:53:49 +0300 Received: by tiger.solvo.ru (Postfix, from userid 504) id 83843326872; Fri, 9 Dec 2005 09:53:46 +0300 (MSK) Received: from crown (dual.solvo.ru [195.201.44.111]) by tiger.solvo.ru (Postfix) with ESMTP id 37AF2326853; Fri, 9 Dec 2005 09:53:46 +0300 (MSK) From: "Eugene Fokin" To: "'Ludek Finstrle'" , Subject: Re: [ psqlodbc-Bugs-1000476 ] DateStyle and Transaction Date: Fri, 9 Dec 2005 09:54:22 +0300 Message-ID: <001801c5fc8d$62dfce70$dd2cc9c3@solvo.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 In-Reply-To: <20051209022821.GA8563@soptik.pzkagis.cz> Importance: Normal X-Milter: Spamilter X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.666 required=5 tests=[AWL=0.666] X-Spam-Score: 0.666 X-Spam-Level: X-Archive-Number: 200512/103 X-Sequence-Number: 6582 Hi. Probably, you're right about CC_commit() call place, but I think it doesn't need to be checked about auto_commit mode. Because, after cancellation ROLLBACK will break DateStyle either in auto_commit mode on. I've used auto_commit mode off only to show how manual ROLLBACK will lose DateStyle. Regards. -- Eugene Fokin SOLVO Ltd. -----Original Message----- From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Ludek Finstrle Sent: Friday, December 09, 2005 5:28 AM To: pgsql-odbc@postgresql.org Subject: Re: [ODBC] [ psqlodbc-Bugs-1000476 ] DateStyle and Transaction > In application, I've turned auto_commit mode off. > > P.S. The same thing we'll see if we cancel first select statement. > After cancellation there will be "ROLLBACK" command which drops > DateStyle setting too. What I think, driver should issue "COMMIT" > right after settings in connection procedure. For example, > call CC_commit() at the end of CC_send_settings() function. I thinks it's better to commit later in other place (e.g. commit set client_encoding too). Patch attached. Thanks for report and initial hint Luf