cpython/Modules/_sqlite
Serhiy Storchaka 0eec6276fd
bpo-44859: Improve error handling in sqlite3 and and raise more accurate exceptions. (GH-27654)
* MemoryError is now raised instead of sqlite3.Warning when
  memory is not enough for encoding a statement to UTF-8
  in Connection.__call__() and Cursor.execute().
* UnicodEncodeError is now raised instead of sqlite3.Warning when
  the statement contains surrogate characters
  in Connection.__call__() and Cursor.execute().
* TypeError is now raised instead of ValueError for non-string
  script argument in Cursor.executescript().
* ValueError is now raised for script containing the null
  character instead of truncating it in Cursor.executescript().
* Correctly handle exceptions raised when getting boolean value
  of the result of the progress handler.
* Add many tests covering different corner cases.

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-08-08 08:49:44 +03:00
..
clinic bpo-44859: Improve error handling in sqlite3 and and raise more accurate exceptions. (GH-27654) 2021-08-08 08:49:44 +03:00
connection.c bpo-44859: Improve error handling in sqlite3 and and raise more accurate exceptions. (GH-27654) 2021-08-08 08:49:44 +03:00
connection.h bpo-42064: Optimise sqlite3 state access, part 1 (GH-27273) 2021-07-29 02:21:45 -07:00
cursor.c bpo-44859: Improve error handling in sqlite3 and and raise more accurate exceptions. (GH-27654) 2021-08-08 08:49:44 +03:00
cursor.h bpo-42064: Remove stale extern declarations in sqlite3 headers (GH-26840) 2021-06-23 21:06:53 +09:00
microprotocols.c bpo-42064: Optimise sqlite3 state access, part 1 (GH-27273) 2021-07-29 02:21:45 -07:00
microprotocols.h bpo-42064: Optimise sqlite3 state access, part 1 (GH-27273) 2021-07-29 02:21:45 -07:00
module.c bpo-42064: Optimise sqlite3 state access, part 1 (GH-27273) 2021-07-29 02:21:45 -07:00
module.h bpo-42064: Optimise sqlite3 state access, part 1 (GH-27273) 2021-07-29 02:21:45 -07:00
prepare_protocol.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
prepare_protocol.h bpo-42064: Remove stale extern declarations in sqlite3 headers (GH-26840) 2021-06-23 21:06:53 +09:00
row.c bpo-42064: Optimise sqlite3 state access, part 1 (GH-27273) 2021-07-29 02:21:45 -07:00
row.h bpo-42064: Remove stale extern declarations in sqlite3 headers (GH-26840) 2021-06-23 21:06:53 +09:00
statement.c bpo-44859: Improve error handling in sqlite3 and and raise more accurate exceptions. (GH-27654) 2021-08-08 08:49:44 +03:00
statement.h bpo-42064: Optimise sqlite3 state access, part 1 (GH-27273) 2021-07-29 02:21:45 -07:00
util.c bpo-42064: Optimise sqlite3 state access, part 1 (GH-27273) 2021-07-29 02:21:45 -07:00
util.h bpo-42064: Optimise sqlite3 state access, part 1 (GH-27273) 2021-07-29 02:21:45 -07:00