pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wayne Armstrong <wdarmst@bacchus.com.au>
To: pgsql-odbc@postgresql.org
Subject: Re: Can I do anything to prevent " auto rollback in a transaction when an error occurs "
Date: Fri, 21 Mar 2003 15:11:21 +1100
Message-ID: <200303210413.h2L4D5Jb020559@mail.bacchus.com.au> (raw)
In-Reply-To: <000801c2ef56$0df485f0$0da8a8a8@zengjun>
References: <000801c2ef56$0df485f0$0da8a8a8@zengjun>

** Reply to message from "junzeng" <junzeng@netease.com> on Fri, 21 Mar 2003
11:00:39 +0800

Hi,
 If you set the dissalow premature option in the odbc driver it can reduce the
risk of this - but it still does happen and it's extremely dangerous :(.
 I have hacked the odbc driver (for the 7.72.0.5 level) to work with visualage
smalltalk, and have removed the rollback on error with no obvious bad side
effects. (there probably are some though).

Regards,
Wayne
 
> In a transaction , if a sql command invite an error , all commands before this
> command will be rollbacked , and the transaction reset and restart. 
> For example:
>  
> BEGIN
> insert  t1 values(1);
> delete from t2
> insert t1 values(2);
> commit
> 
> if table t2 doesn't exist , "delete from t2" invites an error , and the insert will be rollbacked . 
> 
> How can I prevent the rollback even when an error occurs ? Thanks



view thread (3+ messages)  latest in thread

Message-ID: <200303210413.h2L4D5Jb020559@mail.bacchus.com.au>
Permalink:  ../200303210413.h2L4D5Jb020559@mail.bacchus.com.au/
Also on:    postgresql.org/message-id/200303210413.h2L4D5Jb020559@mail.bacchus.com.au

 · 

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: wdarmst@bacchus.com.au
  Subject: Re: Can I do anything to prevent " auto rollback in a transaction when an error occurs "
  In-Reply-To: <200303210413.h2L4D5Jb020559@mail.bacchus.com.au>
  References: <000801c2ef56$0df485f0$0da8a8a8@zengjun> <200303210413.h2L4D5Jb020559@mail.bacchus.com.au>

* 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