pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BEGIN and autocommit(false) (was: some question about SavePoint ?)
2+ messages / 2 participants
[nested] [flat]

* BEGIN and autocommit(false) (was: some question about SavePoint ?)
@ 2006-01-19 14:03 Marc Herbert <Marc.Herbert@continuent.com>
  2006-01-19 14:24 ` Re: BEGIN and autocommit(false) (was: some question about SavePoint ?) Ludek Finstrle <luf@pzkagis.cz>
  0 siblings, 1 reply; 2+ messages in thread

From: Marc Herbert @ 2006-01-19 14:03 UTC (permalink / raw)
  To: pgsql-odbc

Ludek Finstrle <luf@pzkagis.cz> writes:

>>  1. set SQL_AUTOCOMMIT_OFF
>
> Yes you do ... When you use autocommit = off you have to start and end
> transaction manually.

Wrong: in ODBC, you just have to "end" transactions manually, you
don't have to start them, they are implicitely started when the
previous one ends.

In ODBC (and JDBC), you are ALWAYS inside a transaction, there is no
such thing as a transactional "no man's land" from an ODBC interface
point of view (internal, hidden implementation details may differ).




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BEGIN and autocommit(false) (was: some question about SavePoint ?)
  2006-01-19 14:03 BEGIN and autocommit(false) (was: some question about SavePoint ?) Marc Herbert <Marc.Herbert@continuent.com>
@ 2006-01-19 14:24 ` Ludek Finstrle <luf@pzkagis.cz>
  0 siblings, 0 replies; 2+ messages in thread

From: Ludek Finstrle @ 2006-01-19 14:24 UTC (permalink / raw)
  To: Marc Herbert <Marc.Herbert@continuent.com>; +Cc: pgsql-odbc

> >>  1. set SQL_AUTOCOMMIT_OFF
> >
> > Yes you do ... When you use autocommit = off you have to start and end
> > transaction manually.
> 
> Wrong: in ODBC, you just have to "end" transactions manually, you
> don't have to start them, they are implicitely started when the
> previous one ends.
> 
> In ODBC (and JDBC), you are ALWAYS inside a transaction, there is no
> such thing as a transactional "no man's land" from an ODBC interface
> point of view (internal, hidden implementation details may differ).

Thanks a lot for showing me the rigth way. I was confused when
I touch the relevant code. It's clear for me now.

> Of course you can quite trivially implement one interface style _on
> top of_ the other, if ever needed. That is probably what pgodbc
> does/should do. That does not imply mixing the two concepts. Please.

Ok. I'll take a look at the code with this (for me) new informations.

Regards,

Luf



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-01-19 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-01-19 14:03 BEGIN and autocommit(false) (was: some question about SavePoint ?) Marc Herbert <Marc.Herbert@continuent.com>
2006-01-19 14:24 ` Ludek Finstrle <luf@pzkagis.cz>

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