Re: db.commit()
Gerhard Haering <[email protected]> Mon, 22 Nov 2004 09:22:04 +0100
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Nov 22, 2004 at 01:03:04PM +1000, Timothy Smith wrote: > can anyone point me to some docs or explainf .commit() for me. what i'm > intrested in is what happens if i perform some actions, but say i find > an error and do not want to commit those. if i do db.close() are thos > updates/inserts cancled? To discard the changes, use .rollback() on the connection object. Btw. a .close() does an implicit .rollback(). -- Gerhard
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD4DBQFBoaGsdIO4ozGCH14RApMxAKC5PFKHParNzO755jPrDC0I1bx/twCYtHJr Mw3d8GtaMYpucP0xzLnPIg== =+knl -----END PGP SIGNATURE-----