0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 03:01:36 +01:00
cpython/Modules/_sqlite
Erlend Egeberg Aasland 4674fd4e93
bpo-44859: Raise more accurate exceptions in sqlite3 (GH-27695)
* Improve exception compliance with PEP 249
* Raise InterfaceError instead of ProgrammingError for SQLITE_MISUSE.
  If SQLITE_MISUSE is raised, it is a sqlite3 module bug. Users of the
  sqlite3 module are not responsible for using the SQLite C API correctly.
* Don't overwrite BufferError with ValueError when conversion to BLOB fails.
* Raise ProgrammingError instead of Warning if user tries to execute() more
  than one SQL statement.
* Raise ProgrammingError instead of ValueError if an SQL query contains null characters.
* Make sure `_pysqlite_set_result` raises an exception if it returns -1.
2022-03-16 22:58:25 -07:00
..
clinic
connection.c bpo-44859: Raise more accurate exceptions in sqlite3 (GH-27695) 2022-03-16 22:58:25 -07:00
connection.h
cursor.c
cursor.h
microprotocols.c
microprotocols.h
module.c
module.h
prepare_protocol.c
prepare_protocol.h
row.c
row.h
statement.c bpo-44859: Raise more accurate exceptions in sqlite3 (GH-27695) 2022-03-16 22:58:25 -07:00
statement.h
util.c
util.h