Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: [ psqlodbc-Bugs-1000476 ] DateStyle and Transaction


  • From: "Eugene Fokin" <elf(at)solvo(dot)ru>
  • To: "'Ludek Finstrle'" <luf(at)pzkagis(dot)cz>
  • Cc: <pgsql-odbc(at)postgresql(dot)org>
  • Subject: Re: [ psqlodbc-Bugs-1000476 ] DateStyle and Transaction
  • Date: Fri, 9 Dec 2005 15:42:47 +0300
  • Message-id: <004b01c5fcbe$0f1b99a0$dd2cc9c3@solvo.ru> <text/plain>

I saw in the PostgreSQL log file, either in auto_commit mode on,
psqlodbc generates implicit transaction for each "data change statement"
and implicit transaction for whole bunch of consequent "select
statmenets".

So, it starts transaction at begin and doesn't close it before first
"data change statement". If I'll cancel one of first select, I'll lose
DateStyle.

Regards.

-- 
Eugene Fokin
SOLVO Ltd.


-----Original Message-----
From: Ludek Finstrle [mailto:luf(at)pzkagis(dot)cz] 
Sent: Friday, December 09, 2005 1:56 PM
To: Eugene Fokin
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: [ODBC] [ psqlodbc-Bugs-1000476 ] DateStyle and Transaction

> 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.

It's strenge. There is no begin transaction in autocommit mode on.
I'll try it.

Thanks

Luf




Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group