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

2019-05-06 Thread Julien Palard
Julien Palard added the comment: This has been fixed in fc662ac332443a316a120fa5287c235dc4f8739b. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker __

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

2016-11-19 Thread Aviv Palivoda
Changes by Aviv Palivoda : -- nosy: +palaviv ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

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

2016-11-18 Thread Julien Palard
Julien Palard added the comment: By moving: ``` /* else set the right exception and return NULL */ PyErr_SetString(pysqlite_ProgrammingError, "can't adapt"); ``` from `pysqlite_microprotocols_adapt` to `pysqlite_adapt` (to avoid changing the semantics from the outside) make the `pysqlite_micro

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

2016-11-17 Thread Julien Palard
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) ---

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

2016-11-17 Thread Julien Palard
Julien Palard added the comment: Problems looks from `Modules/_sqlite/statement.c`: ``` if (!_need_adapt(current_param)) { adapted = current_param; } else { adapted = pysqlite_microprotocols_adapt(current_param, (PyObject*)&pysqlite_PrepareProtocolType, NULL); if (adapted) {

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

2016-11-17 Thread Peter Inglesby
New submission from Peter Inglesby: The following code raises `sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.` when I would expect it to raise `AssertionError: Problem in adapter`. import sqlite3 class Point: def __init__(self, x, y): self.x, self.