From: junzeng <junzeng@netease.com>
To: pgsql-odbc@postgresql.org
Subject: Can I do anything to prevent " auto rollback in a transaction when an error occurs "
Date: Fri, 21 Mar 2003 11:00:39 +0800
Message-ID: <000801c2ef56$0df485f0$0da8a8a8@zengjun> (raw)
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
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: junzeng@netease.com
Subject: Re: Can I do anything to prevent " auto rollback in a transaction when an error occurs "
In-Reply-To: <000801c2ef56$0df485f0$0da8a8a8@zengjun>
References: <000801c2ef56$0df485f0$0da8a8a8@zengjun>
* 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