| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | [3.9] bpo-45581: Raise `MemoryError` in `sqlite3.connect` if SQLite signals ↵ | Łukasz Langa | 2021-10-29 | 1 | -0/+4 |
| | | | | | | | | memory error (GH-29171) (GH-29324) (cherry picked from commit e2e62b3808691e15fa44b883270023e42dcad958) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> | ||||
| * | [3.10] bpo-45126: Fix ref. leak in `sqlite3.Connection.__init__` (GH-28231). ↵ | Miss Islington (bot) | 2021-09-13 | 1 | -0/+1 |
| | | | | | | | | (GH-28298) (cherry picked from commit aa6dd54d43dffbdf883c083e361f6ccf8642d66e) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> | ||||
| * | [3.9] bpo-27334: roll back transaction if sqlite3 context manager fails to ↵ | Erlend Egeberg Aasland | 2021-08-25 | 1 | -10/+24 |
| | | | | | commit (GH-26202) (GH-27944) | ||||
| * | [3.9] bpo-44822: Don't truncate `str`s with embedded NULL chars returned by ↵ | Erlend Egeberg Aasland | 2021-08-06 | 1 | -3/+10 |
| | | | | | | | `sqlite3` UDF callbacks (GH-27588). (GH-27639) (cherry picked from commit 8f010dc920e1f6dc6a357e7cc1460a7a567c05c6) | ||||
| * | [3.9] bpo-43853: Handle sqlite3_value_text() errors (GH-25422). (GH-27627) | Erlend Egeberg Aasland | 2021-08-06 | 1 | -11/+16 |
| | | | | | (cherry picked from commit 006fd869e4798b68e266f5de89c83ddb531a756b) | ||||
| * | [3.9] bpo-31746: Prevent segfaults when sqlite3.Connection is uninitialised ↵ | Erlend Egeberg Aasland | 2021-07-29 | 1 | -7/+22 |
| | | | | | | | | (GH-27431) (GH-27465) (cherry picked from commit 7e311e496b0e26b3d3c62fe9b0ed2a4677c37ee9) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> | ||||
| * | bpo-43434: Move sqlite3.connect audit event to sqlite3.Connection.__init__ ↵ | Erlend Egeberg Aasland | 2021-05-02 | 1 | -0/+4 |
| | | | | | (GH-25818) | ||||
| * | bpo-43083: Fix error handling in _sqlite3 (GH-24395) | Miss Islington (bot) | 2021-01-31 | 1 | -1/+5 |
| | | | | | | (cherry picked from commit 9073180db521dc83e6216ff0da1479d00167f643) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | ||||
| * | bpo-41815: SQLite: segfault if backup called on closed database (GH-22322) | Miss Islington (bot) | 2020-09-21 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | GH- [bpo-41815](): SQLite: fix segfault if backup called on closed database Attempting to backup a closed database will trigger segfault: ```python import sqlite3 target = sqlite3.connect(':memory:') source = sqlite3.connect(':memory:') source.close() source.backup(target) ``` (cherry picked from commit bfee9fad84531a471fd7864e88947320669f68e2) Co-authored-by: Peter McCormick <peter@pdmccormick.com> | ||||
| * | bpo-40268: Remove unused structmember.h includes (GH-19530) | Victor Stinner | 2020-04-15 | 1 | -1/+1 |
| | | | | | | | If only offsetof() is needed: include stddef.h instead. When structmember.h is used, add a comment explaining that PyMemberDef is used. | ||||
| * | bpo-40268: Remove explicit pythread.h includes (#19529) | Victor Stinner | 2020-04-15 | 1 | -2/+0 |
| | | | | | Remove explicit pythread.h includes: it is always included by Python.h. | ||||
| * | bpo-39943: Add the const qualifier to pointers on non-mutable PyBytes data. ↵ | Serhiy Storchaka | 2020-04-12 | 1 | -1/+1 |
| | | | | | (GH-19472) | ||||
| * | bpo-39943: Add the const qualifier to pointers on non-mutable PyUnicode ↵ | Serhiy Storchaka | 2020-04-11 | 1 | -1/+1 |
| | | | | | data. (GH-19345) | ||||
| * | bpo-39245: Switch to public API for Vectorcall (GH-18460) | Petr Viktorin | 2020-02-11 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bulk of this patch was generated automatically with: for name in \ PyObject_Vectorcall \ Py_TPFLAGS_HAVE_VECTORCALL \ PyObject_VectorcallMethod \ PyVectorcall_Function \ PyObject_CallOneArg \ PyObject_CallMethodNoArgs \ PyObject_CallMethodOneArg \ ; do echo $name git grep -lwz _$name | xargs -0 sed -i "s/\b_$name\b/$name/g" done old=_PyObject_FastCallDict new=PyObject_VectorcallDict git grep -lwz $old | xargs -0 sed -i "s/\b$old\b/$new/g" and then cleaned up: - Revert changes to in docs & news - Revert changes to backcompat defines in headers - Nudge misaligned comments | ||||
| * | Replace _pysqlite_long_from_int64() with PyLong_FromLongLong() (GH-16882) | Sergey Fedoseev | 2019-10-23 | 1 | -1/+1 |
| | | |||||
| * | closes bpo-37347: Fix refcount problem in sqlite3. (GH-14268) | gescheit | 2019-07-13 | 1 | -34/+41 |
| | | |||||
| * | bpo-37547: add _PyObject_CallMethodOneArg (GH-14685) | Jeroen Demeyer | 2019-07-11 | 1 | -4/+4 |
| | | |||||
| * | bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267) | Jeroen Demeyer | 2019-07-08 | 1 | -4/+4 |
| | | |||||
| * | bpo-37483: add _PyObject_CallOneArg() function (#14558) | Jeroen Demeyer | 2019-07-04 | 1 | -10/+3 |
| | | |||||
| * | bpo-37406: sqlite3 raises TypeError for wrong operation type (GH-14386) | Victor Stinner | 2019-06-26 | 1 | -1/+1 |
| | | | | | | The sqlite3 module now raises TypeError, rather than ValueError, if operation argument type is not str: execute(), executemany() and calling a connection. | ||||
| * | bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵ | Jeroen Demeyer | 2019-05-31 | 1 | -2/+2 |
| | | | | | | | | | | (GH-13464) Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async | ||||
| * | bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. ↵ | Zackery Spytz | 2018-12-17 | 1 | -0/+4 |
| | | | | | (GH-11175) | ||||
| * | bpo-32788: Better error handling in sqlite3. (GH-3723) | Serhiy Storchaka | 2018-12-10 | 1 | -2/+6 |
| | | | | Propagate unexpected errors (like MemoryError and KeyboardInterrupt) to user. | ||||
| * | bpo-34052: Prevent SQLite functions from setting callbacks on exceptions. ↵ | Sergey Fedoseev | 2018-12-05 | 1 | -18/+13 |
| | | | | | (GH-8113) | ||||
| * | bpo-33029: Fix signatures of getter and setter functions. (GH-10746) | Serhiy Storchaka | 2018-11-27 | 1 | -3/+4 |
| | | | | Fix also return type for few other functions (clear, releasebuffer). | ||||
| * | bpo-33012: Fix invalid function cast warnings with gcc 8. (GH-6749) | Serhiy Storchaka | 2018-11-27 | 1 | -7/+7 |
| | | | | | | | Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS excluding Argument Clinic generated code. | ||||
| * | bpo-34743: Fix test_database_source_name under SQLite 3.7.9 (GH-9426) | Berker Peksag | 2018-09-20 | 1 | -0/+6 |
| | | |||||
| * | prefix internal sqlite symbols with _pysqlite_ (GH-8215) | Benjamin Peterson | 2018-07-10 | 1 | -8/+8 |
| | | |||||
| * | bpo-34041: Allow creating deterministic functions in ↵ | Sergey Fedoseev | 2018-07-08 | 1 | -4/+28 |
| | | | | | Connection.create_function() (GH-8086) | ||||
| * | bpo-27645, sqlite: Fix integer overflow on sleep (#6594) | Victor Stinner | 2018-04-30 | 1 | -4/+20 |
| | | | | | | | | | | Use the _PyTime_t type and round away from zero (ROUND_UP, _PyTime_ROUND_TIMEOUT) the sleep duration, when converting a Python object to seconds and then to milliseconds. Raise an OverflowError in case of overflow. Previously the (int)double conversion rounded towards zero (ROUND_DOWN). | ||||
| * | Fix error message in sqlite connection thread check. (GH-6028) | Takuya Akiba | 2018-03-26 | 1 | -2/+2 |
| | | |||||
| * | bpo-27645: Fix version number in 'database in transaction' fallback (GH-6131) | Aviv Palivoda | 2018-03-18 | 1 | -2/+2 |
| | | | | It was actually fixed in SQLite 3.8.8, not 3.8.7. | ||||
| * | bpo-27645: Add support for native backup facility of SQLite (GH-4238) | Emanuele Gaifas | 2018-03-10 | 1 | -0/+139 |
| | | |||||
| * | Add the const qualifier to "char *" variables that refer to literal strings. ↵ | Serhiy Storchaka | 2017-11-11 | 1 | -1/+1 |
| | | | | | (#4370) | ||||
| * | bpo-31843: sqlite3.connect() now accepts PathLike objects as database name ↵ | Anders Lorentsen | 2017-11-07 | 1 | -2/+7 |
| | | | | | (#4299) | ||||
| * | bpo-31740: Prevent refleaks when sqlite3.Connection.__init__() is called ↵ | Oren Milman | 2017-10-10 | 1 | -8/+8 |
| | | | | | more than once (GH-3944) | ||||
| * | closes bpo-31525: require sqlite3_prepare_v2 (#3666) | Benjamin Peterson | 2017-09-20 | 1 | -3/+3 |
| | | | | | | This is based on https://github.com/ghaering/pysqlite/commit/40b349cadbd87c42f70fc92e5e1aee6d02564c6d#diff-0489411409cd2934730e88bf7767790, though we can be a bit more aggressive about deleting code. | ||||
| * | bpo-31370: Remove support for threads-less builds (#3385) | Antoine Pitrou | 2017-09-07 | 1 | -37/+0 |
| | | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. | ||||
| * | bpo-30592: Fixed error messages for some builtins. (#1996) | Serhiy Storchaka | 2017-06-08 | 1 | -1/+1 |
| | | | | | | Error messages when pass keyword arguments to some builtins that don't support keyword arguments contained double parenthesis: "()()". The regression was introduced by bpo-30534. | ||||
| * | Use NULL rather than 0. (#778) | Serhiy Storchaka | 2017-03-23 | 1 | -1/+1 |
| | | | | | | There was few cases of using literal 0 instead of NULL in the context of pointers. While this was a legitimate C code, using NULL rather than 0 makes the code clearer. | ||||
| * | bpo-6532: Make the thread id an unsigned integer. (#781) | Serhiy Storchaka | 2017-03-23 | 1 | -1/+1 |
| | | | | | | | | | | | | * bpo-6532: Make the thread id an unsigned integer. From C API side the type of results of PyThread_start_new_thread() and PyThread_get_thread_ident(), the id parameter of PyThreadState_SetAsyncExc(), and the thread_id field of PyThreadState changed from "long" to "unsigned long". * Restore a check in thread_get_ident(). | ||||
| * | bpo-9303: Migrate sqlite3 module to _v2 API to enhance performance (#359) | Aviv Palivoda | 2017-03-03 | 1 | -5/+7 |
| | | |||||
| * | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever | Serhiy Storchaka | 2017-01-23 | 1 | -6/+3 |
| | | | | | possible. Patch is writen with Coccinelle. | ||||
| * | Issue #28915: Use _PyObject_CallNoArg() | Victor Stinner | 2016-12-09 | 1 | -2/+2 |
| | | | | | Replace PyObject_CallFunction(func, NULL) with _PyObject_CallNoArg(func). | ||||
| * | Added the const qualifier to char* variables that refer to readonly internal | Serhiy Storchaka | 2016-11-20 | 1 | -1/+1 |
| | | | | | UTF-8 represenatation of Unicode objects. | ||||
| * | Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize | Serhiy Storchaka | 2016-11-20 | 1 | -2/+2 |
| | | | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize. | ||||
| * | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 1 | -1/+1 |
| |\ | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions. | ||||
| | * | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 1 | -1/+1 |
| | | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions. | ||||
| * | | Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation() | Serhiy Storchaka | 2016-09-26 | 1 | -2/+4 |
| |\ \ | |/ | | | | | if pass invalid string-like object as a name. Patch by Xiang Zhang. | ||||
| | * | Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation() | Serhiy Storchaka | 2016-09-26 | 1 | -2/+4 |
| | | | | | | | | | if pass invalid string-like object as a name. Patch by Xiang Zhang. | ||||
