Re: Constraint problem
| От | Sean Davis |
|---|---|
| Тема | Re: Constraint problem |
| Дата | |
| Msg-id | ee6796bb279ddec9587cdb7bfa2d8f67@mail.nih.gov обсуждение исходный текст |
| Ответ на | Constraint problem (Szmutku Zoltán <szmutku.zoltan@betet-kft.hu>) |
| Ответы |
Re: Constraint problem
Re: Constraint problem |
| Список | 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
В списке pgsql-general по дате отправления: