[issue22382] sqlite3 connection built from apsw connection should raise IntegrityError, not DatabaseError

william tonkin report at bugs.python.org
Thu Sep 11 22:17:08 CEST 2014


william tonkin added the comment:

The following worked for me:


--- util.c      2014-09-11 15:15:11.480266548 -0400
+++ util.c.fixed        2014-09-11 15:17:19.214878592 -0400
@@ -54,7 +54,7 @@
         (void)sqlite3_reset(st);
     }

-    errorcode = sqlite3_errcode(db);
+    errorcode = 0xffu & sqlite3_errcode(db);

     switch (errorcode)
     {

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22382>
_______________________________________


More information about the Python-bugs-list mailing list