Re: PG constraint - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: PG constraint
Date
Msg-id 20050327154211.GA9280@wolff.to
Whole thread Raw
In response to PG constraint  (Szmutku Zoltán <szmutku.zoltan@betet-kft.hu>)
List pgsql-general
On Mon, Mar 21, 2005 at 08:04:01 +0100,
  Szmutku Zoltán <szmutku.zoltan@betet-kft.hu> wrote:
> Hi everybody ,
>
> I tried 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?  

In version 8.0 you can use the savepoint feature to do this.

pgsql-general by date:

Previous
From: "David Parker"
Date:
Subject: Re: create or replace trigger?
Next
From: Bruno Wolff III
Date:
Subject: Re: Using sequence name depending on other column