pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eugene Fokin <elf@solvo.ru>
To: 'Ludek Finstrle' <luf@pzkagis.cz>
To: pgsql-odbc@postgresql.org
Subject: Re: [ psqlodbc-Bugs-1000476 ] DateStyle and Transaction
Date: Fri, 9 Dec 2005 09:54:22 +0300
Message-ID: <001801c5fc8d$62dfce70$dd2cc9c3@solvo.ru> (raw)
In-Reply-To: <20051209022821.GA8563@soptik.pzkagis.cz>

Hi.

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.

I've used auto_commit mode off only to show how manual ROLLBACK will
lose DateStyle.

Regards.

-- 
Eugene Fokin
SOLVO Ltd.


-----Original Message-----
From: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Ludek Finstrle
Sent: Friday, December 09, 2005 5:28 AM
To: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] [ psqlodbc-Bugs-1000476 ] DateStyle and Transaction

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

I thinks it's better to commit later in other place
(e.g. commit set client_encoding too).

Patch attached.

Thanks for report and initial hint

Luf




view thread (17+ messages)  latest in thread

Message-ID: <001801c5fc8d$62dfce70$dd2cc9c3@solvo.ru>
Permalink:  ../001801c5fc8d$62dfce70$dd2cc9c3@solvo.ru/
Also on:    postgresql.org/message-id/001801c5fc8d$62dfce70$dd2cc9c3@solvo.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: elf@solvo.ru, luf@pzkagis.cz
  Subject: Re: [ psqlodbc-Bugs-1000476 ] DateStyle and Transaction
  In-Reply-To: <001801c5fc8d$62dfce70$dd2cc9c3@solvo.ru>
  References: <20051209022821.GA8563@soptik.pzkagis.cz> <001801c5fc8d$62dfce70$dd2cc9c3@solvo.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox