From ea8a1cbde2ebfe723c946bb49727400b3e6ce18b Mon Sep 17 00:00:00 2001 From: gh Date: Sat, 28 May 2005 23:01:26 +0000 Subject: [PATCH] Added note about OR ROLLBACK/ON CONFLICT ROLLBACK. --- doc/usage-guide.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/usage-guide.txt b/doc/usage-guide.txt index e08ec1f..10b31d1 100644 --- a/doc/usage-guide.txt +++ b/doc/usage-guide.txt @@ -730,3 +730,8 @@ If you want *autocommit mode*, then set **isolation_level** to None. Otherwise leave it at it's default, which will result in a plain "BEGIN" statement, or set it to one of SQLite's supported isolation levels: DEFERRED, IMMEDIATE or EXCLUSIVE. + +As pysqlite needs to keep track of the transaction state, you should not use +``OR ROLLBACK`` or ``ON CONFLICT ROLLBACK``. Instead, catch the +``IntegrityError`` and call the ``rollback`` method of the connection yourself. +