[issue28729] Exception from sqlite3 adapter masked by sqlite3.InterfaceError

Julien Palard report at bugs.python.org
Thu Nov 17 19:10:56 EST 2016


Julien Palard added the comment:

I missed an occurrence of this "if/else" block, and by changing it, a lot of tests are failing, typically:

```======================================================================
ERROR: CheckBlob (sqlite3.test.types.SqliteTypeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mdk/cpython/Lib/sqlite3/test/types.py", line 72, in CheckBlob
    self.cur.execute("insert into test(b) values (?)", (val,))
sqlite3.InterfaceError: Problem in adapter

```

So this "if/else" giving back the unadapted parameter even when need_adapt is true is necessary, we'll have to understand why and how we can properly detect an adapter failure.

----------

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


More information about the Python-bugs-list mailing list