cpython/Modules/_sqlite
Victor Stinner 7e3f09cad9
gh-99537: Use Py_SETREF() function in C code (#99656)
Fix potential race condition in code patterns:

* Replace "Py_DECREF(var); var = new;" with "Py_SETREF(var, new);"
* Replace "Py_XDECREF(var); var = new;" with "Py_XSETREF(var, new);"
* Replace "Py_CLEAR(var); var = new;" with "Py_XSETREF(var, new);"

Other changes:

* Replace "old = var; var = new; Py_DECREF(var)"
  with "Py_SETREF(var, new);"
* Replace "old = var; var = new; Py_XDECREF(var)"
  with "Py_XSETREF(var, new);"
* And remove the "old" variable.
2022-11-22 14:22:22 +01:00
..
clinic gh-83638: Add sqlite3.Connection.autocommit for PEP 249 compliant behaviour (#93823) 2022-11-12 23:44:41 +01:00
blob.c gh-92019: Make sqlite3.Blob indexing conform with the norm (#92020) 2022-04-30 09:01:37 -06:00
blob.h gh-69093: Support basic incremental I/O to blobs in `sqlite3` (GH-30680) 2022-04-14 17:02:56 -07:00
connection.c gh-83638: Add sqlite3.Connection.autocommit for PEP 249 compliant behaviour (#93823) 2022-11-12 23:44:41 +01:00
connection.h gh-83638: Add sqlite3.Connection.autocommit for PEP 249 compliant behaviour (#93823) 2022-11-12 23:44:41 +01:00
cursor.c gh-99537: Use Py_SETREF() function in C code (#99656) 2022-11-22 14:22:22 +01:00
cursor.h bpo-44092: Remove unused member `reset` from `sqlite3.Cursor` (GH-30377) 2022-01-03 15:47:16 -08:00
microprotocols.c gh-93829: In sqlite3, replace Py_BuildValue with faster APIs (#93830) 2022-06-15 10:42:49 +02:00
microprotocols.h bpo-42064: Convert `sqlite3` global state to module state (GH-29073) 2021-10-27 13:12:21 +02:00
module.c gh-83638: Add sqlite3.Connection.autocommit for PEP 249 compliant behaviour (#93823) 2022-11-12 23:44:41 +01:00
module.h gh-83638: Add sqlite3.Connection.autocommit for PEP 249 compliant behaviour (#93823) 2022-11-12 23:44:41 +01:00
prepare_protocol.c gh-94321: Document sqlite3.PrepareProtocol (#94620) 2022-07-08 00:33:17 +02:00
prepare_protocol.h Remove unused UNKNOWN macros from cursor.h and prepare_protocol.h (GH-27885) 2021-08-22 22:23:45 +09:00
row.c bpo-42064: Convert `sqlite3` global state to module state (GH-29073) 2021-10-27 13:12:21 +02:00
row.h bpo-42064: Remove stale extern declarations in `sqlite3` headers (GH-26840) 2021-06-23 21:06:53 +09:00
statement.c gh-88239: Use sqlite3_stmt_busy() to determine if statements are in use (#25984) 2022-06-27 09:58:56 +02:00
statement.h gh-88239: Use sqlite3_stmt_busy() to determine if statements are in use (#25984) 2022-06-27 09:58:56 +02:00
util.c gh-89022: Improve sqlite3 exceptions related to binding params and API misuse (#91572) 2022-05-04 07:16:01 -06:00
util.h gh-92206: Move pysqlite_step() to Modules/_sqlite/cursor.c (#92207) 2022-05-02 21:45:04 -06:00