Re: db.commit()

Gerhard Haering <[email protected]> Mon, 22 Nov 2004 10:21:07 +0100
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
On Mon, Nov 22, 2004 at 07:06:38PM +1000, Timothy Smith wrote:
> .rollback(), can i rollback the the last commit for the db object?

An explanation might be this:

changes are accumulated until you COMMIT or ROLLBACK the transaction.
They are accumulated fro mthe point you commited or rolled back the
last time. If you .commit() then the changes are permanent. If you
rollback, then you discard the changes.

You cannot undo changes that you already committed with a single
command.

-- Gerhard
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBoa+DdIO4ozGCH14RApQmAKCeZVWy51gvX7prTO0msnwVnf79ogCfeuWJ
/pdl9RAOOfL2TpLygQnmb0Y=
=RE4I
-----END PGP SIGNATURE-----