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 BBC6B9DCAE3 for ; Thu, 8 Dec 2005 22:35:51 -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 39846-03 for ; Thu, 8 Dec 2005 22:35:55 -0400 (AST) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id C0F8C9DCACB for ; Thu, 8 Dec 2005 22:35:49 -0400 (AST) Received: from localhost (av.hub.org [200.46.204.144]) by pgfoundry.org (Postfix) with ESMTP id 397731125000; Fri, 9 Dec 2005 02:35:55 +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 39367-01; Thu, 8 Dec 2005 22:35:53 -0400 (AST) Received: by pgfoundry.org (Postfix, from userid 80) id 9656B112506F; Fri, 9 Dec 2005 02:35:52 +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: <20051209023552.9656B112506F@pgfoundry.org> Date: Fri, 9 Dec 2005 02:35:52 +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.837 required=5 tests=[ALL_TRUSTED=-1.44, AWL=0.053, NO_REAL_NAME=0.55, SUBJECT_EXCESS_QP=0] X-Spam-Score: -0.837 X-Spam-Level: X-Archive-Number: 200512/100 X-Sequence-Number: 6579 Bugs item #1000476, was opened at 2005-12-08 16: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: Accepted Priority: 3 Submitted By: Nobody (None) >Assigned to: Ludek Finstrle (luf) 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. ---------------------------------------------------------------------- >Comment By: Ludek Finstrle (luf) Date: 2005-12-09 03:35 Message: I fix the problem. Patch is attached. Please try it and report if it helps. ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000476&group_id=1000125