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 050E69DCAAE for ; Thu, 8 Dec 2005 11:43:40 -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 09973-05 for ; Thu, 8 Dec 2005 11:43:44 -0400 (AST) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id E7DD99DCAAF for ; Thu, 8 Dec 2005 11:43:37 -0400 (AST) Received: from localhost (av.hub.org [200.46.204.144]) by pgfoundry.org (Postfix) with ESMTP id D86A61125074; Thu, 8 Dec 2005 15:43:43 +0000 (GMT) Received: from pgfoundry.org ([200.46.204.130]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 97055-06; Thu, 8 Dec 2005 11:43:42 -0400 (AST) Received: by pgfoundry.org (Postfix, from userid 80) id BFB28112504F; Thu, 8 Dec 2005 15:43:41 +0000 (GMT) To: noreply@pgfoundry.org From: Subject: =?UTF-8?Q?[_psqlodbc-Bugs-1000476_]_DateStyle_and_Transaction?= Content-type: text/plain; charset=UTF-8 Message-Id: <20051208154341.BFB28112504F@pgfoundry.org> Date: Thu, 8 Dec 2005 15:43:41 +0000 (GMT) X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=-0.83 required=5 tests=[ALL_TRUSTED=-1.44, AWL=0.060, NO_REAL_NAME=0.55, SUBJECT_EXCESS_QP=0] X-Spam-Score: -0.83 X-Spam-Level: X-Archive-Number: 200512/94 X-Sequence-Number: 6573 Bugs item #1000476, was opened at 2005-12-08 15:43 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000476&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: DateStyle and Transaction Initial Comment: When I work with auto_commit mode off, I can issue ODBC rollback command after my first statements. After that driver loses his DateStyle ISO setting which one driver setup at begin. So, later it will return date fields in wrong format if my default database style is different then ISO (I'm using European,SQL format). Here is example attached. Gzipped TAR archive includes mylog file and postgresql log file. I'm using Linux with unixODBC 2.2.9, psqlodbc 08.01.0102 with options "Threading=0, UseDeclareFetch=1". 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. ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000476&group_id=1000125