[ psqlodbc-Bugs-1000476 ] DateStyle and Transaction - Mailing list pgsql-odbc

From
Subject [ psqlodbc-Bugs-1000476 ] DateStyle and Transaction
Date
Msg-id 20051208154341.BFB28112504F@pgfoundry.org
Whole thread Raw
Responses Re: [ psqlodbc-Bugs-1000476 ] DateStyle and Transaction  (Ludek Finstrle <luf@pzkagis.cz>)
List pgsql-odbc
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
loseshis 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,SQLformat). 
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'veturned 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
whichdrops 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

pgsql-odbc by date:

Previous
From: Marc Herbert
Date:
Subject: Re: BLOB handling compatibility with PostgreSQL > 7.4
Next
From: Peter Eisentraut
Date:
Subject: Re: BLOB handling compatibility with PostgreSQL > 7.4