From: | Sean Davis <sdavis2(at)mail(dot)nih(dot)gov> |
---|---|
To: | Szmutku Zoltán <szmutku(dot)zoltan(at)betet-kft(dot)hu> |
Cc: | "pgsqlista" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Constraint problem |
Date: | 2005-03-22 12:41:50 |
Message-ID: | ee6796bb279ddec9587cdb7bfa2d8f67@mail.nih.gov |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mar 22, 2005, at 7:26 AM, Szmutku Zoltán wrote:
> Hi everybody ,
>
> I try using Postgre, but I have some problems.
> I create a constraint ( R1>=0 ), and after connect to server from
> VFP via ODBC .
> In the client program I turn on the transactions . (
> SQLSETPROP(nHandle,'Transactions',2) )
>
> When I run UPDATE statements one after the other , and one return
> false because of constraint ,
> then the server rolling back all changing automatically.
> I would like to: server ignore the bad statements (return false) and
> after I call rollback or commit manually....possible ?
>
Within a transaction, if one statement fails, all changes will be
rolled back. If you want to commit each statement that works, you can
commit (or rollback) after each statement.
Sean
From | Date | Subject | |
---|---|---|---|
Next Message | John DeSoi | 2005-03-22 12:48:01 | Re: grant problem |
Previous Message | Mike Rylander | 2005-03-22 12:37:48 | Re: Exporting to XML |