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 C275F9DCD0F for ; Sat, 10 Dec 2005 12:17: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 81980-02 for ; Sat, 10 Dec 2005 12:17:39 -0400 (AST) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id D538F9DCD3B for ; Sat, 10 Dec 2005 12:17:38 -0400 (AST) Received: from localhost (av.hub.org [200.46.204.144]) by pgfoundry.org (Postfix) with ESMTP id DA59E1125030; Sat, 10 Dec 2005 16:17:38 +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 78290-10; Sat, 10 Dec 2005 12:17:37 -0400 (AST) Received: by pgfoundry.org (Postfix, from userid 80) id 069BC112507E; Sat, 10 Dec 2005 16:17:37 +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: <20051210161737.069BC112507E@pgfoundry.org> Date: Sat, 10 Dec 2005 16:17:37 +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.851 required=5 tests=[ALL_TRUSTED=-1.44, AWL=0.039, NO_REAL_NAME=0.55, SUBJECT_EXCESS_QP=0] X-Spam-Score: -0.851 X-Spam-Level: X-Archive-Number: 200512/139 X-Sequence-Number: 6618 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: 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: Dave Page (dpage) Date: 2005-12-10 16:17 Message: Bug re-opened - Luf pointed out some ongoing discussion about whether the fix is 100% right or not. http://archives.postgresql.org/pgsql-odbc/2005-12/msg00114.php ---------------------------------------------------------------------- Comment By: Dave Page (dpage) Date: 2005-12-09 22:59 Message: Patch applied, thanks. ---------------------------------------------------------------------- Comment By: Ludek Finstrle (luf) Date: 2005-12-09 02: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