Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-40268: Remove unused structmember.h includes (GH-19530) | Victor Stinner | 2020-04-15 | 2 | -2/+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-39652: Truncate the column name after '[' only if PARSE_COLNAMES is set. ↵ | Serhiy Storchaka | 2020-03-21 | 1 | -7/+22 |
| | | | | (GH-18942) | ||||
* | bpo-39245: Switch to public API for Vectorcall (GH-18460) | Petr Viktorin | 2020-02-11 | 4 | -8/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | bpo-39573: Add Py_SET_TYPE() function (GH-18394) | Victor Stinner | 2020-02-07 | 1 | -1/+1 |
| | | | Add Py_SET_TYPE() function to set the type of an object. | ||||
* | bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393) | Victor Stinner | 2020-02-07 | 1 | -1/+1 |
| | | | Replace direct access to PyObject.ob_type with Py_TYPE(). | ||||
* | bpo-39496: Remove redundant checks from _sqlite/cursor.c (GH-18270) | Alex Henrie | 2020-02-01 | 1 | -20/+6 |
| | |||||
* | bpo-39497: Remove unused variable from pysqlite_cursor_executescript (GH-18271) | Alex Henrie | 2020-01-30 | 1 | -3/+0 |
| | |||||
* | bpo-39494: Remove extra null terminators from kwlist vars (GH-18267) | Alex Henrie | 2020-01-30 | 2 | -3/+3 |
| | |||||
* | Replace _pysqlite_long_from_int64() with PyLong_FromLongLong() (GH-16882) | Sergey Fedoseev | 2019-10-23 | 4 | -20/+3 |
| | |||||
* | bpo-38185: Fixed case-insensitive string comparison in sqlite3.Row indexing. ↵ | Serhiy Storchaka | 2019-09-17 | 1 | -31/+31 |
| | | | | (GH-16190) | ||||
* | bpo-38175: Fix a memory leak in comparison of sqlite3.Row objects. (GH-16155) | Serhiy Storchaka | 2019-09-16 | 1 | -5/+7 |
| | |||||
* | closes bpo-37347: Fix refcount problem in sqlite3. (GH-14268) | gescheit | 2019-07-12 | 2 | -39/+45 |
| | |||||
* | 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 | 3 | -6/+6 |
| | |||||
* | bpo-37483: add _PyObject_CallOneArg() function (#14558) | Jeroen Demeyer | 2019-07-04 | 4 | -16/+11 |
| | |||||
* | bpo-37406: sqlite3 raises TypeError for wrong operation type (GH-14386) | Victor Stinner | 2019-06-26 | 3 | -13/+5 |
| | | | | | The sqlite3 module now raises TypeError, rather than ValueError, if operation argument type is not str: execute(), executemany() and calling a connection. | ||||
* | bpo-37363: Add audit events for a range of modules (GH-14301) | Steve Dower | 2019-06-24 | 1 | -0/+4 |
| | |||||
* | bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵ | Jeroen Demeyer | 2019-05-30 | 6 | -14/+14 |
| | | | | | | | | | (GH-13464) Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async | ||||
* | bpo-30262: Don't expose private objects in sqlite3 (GH-1440) | Aviv Palivoda | 2019-05-09 | 1 | -4/+0 |
| | | | | | | The Cache and Statement objects are undocumented and implementation details of the sqlite3 module. They aren't usable from pure Python code. | ||||
* | bpo-8677: use PY_SSIZE_T_CLEAN in sqlite (GH-12434) | Inada Naoki | 2019-03-19 | 9 | -0/+9 |
| | | | | Modules/_sqlite/cursor.c uses "y#" format. It didn't declare PY_SSIZE_T_CLEAN, but the argument is Py_ssize_t already. | ||||
* | 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 | 5 | -121/+128 |
| | | | 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 | 2 | -4/+6 |
| | | | 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 | 3 | -11/+11 |
| | | | | | | 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 |
| | |||||
* | bpo-32215: Fix performance regression in sqlite3 (GH-8511) | Berker Peksag | 2018-09-20 | 1 | -4/+4 |
| | |||||
* | Remove creation of a list for row_cast_map in pysqlite_cursor_init() (GH-8494) | Sergey Fedoseev | 2018-07-31 | 1 | -5/+2 |
| | | | | | This list is never used: if detect_types is on, this list will be replaced with another one before row_cast_map is used, if detect_types is off, row_cast_map is not used at all. | ||||
* | Remove some unused code in _pysqlite_query_execute() (GH-8495) | Sergey Fedoseev | 2018-07-27 | 1 | -6/+0 |
| | | | Unused since commit ab994ed8b97e1b0dac151ec827c857f5e7277565. | ||||
* | prefix internal sqlite symbols with _pysqlite_ (GH-8215) | Benjamin Peterson | 2018-07-09 | 4 | -19/+19 |
| | |||||
* | delete some unused pysqlite forward declarations (GH-8211) | Benjamin Peterson | 2018-07-09 | 1 | -4/+0 |
| | |||||
* | bpo-34041: Allow creating deterministic functions in ↵ | Sergey Fedoseev | 2018-07-08 | 1 | -4/+28 |
| | | | | Connection.create_function() (GH-8086) | ||||
* | Remove tp_print implementation (GH-7857) | jdemeyer | 2018-06-23 | 1 | -6/+1 |
| | |||||
* | 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). | ||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. ↵ | Siddhesh Poyarekar | 2018-04-29 | 1 | -1/+1 |
| | | | | | | | | | (GH-6030) METH_NOARGS functions need only a single argument but they are cast into a PyCFunction, which takes two arguments. This triggers an invalid function cast warning in gcc8 due to the argument mismatch. Fix this by adding a dummy unused argument. | ||||
* | 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-11 | 2 | -0/+142 |
| | |||||
* | closes bpo-32460: ensure all non-static globals have initializers (#5061) | Benjamin Peterson | 2017-12-31 | 3 | -16/+15 |
| | |||||
* | 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-06 | 2 | -4/+9 |
| | | | | (#4299) | ||||
* | bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor ↵ | Oren Milman | 2017-11-06 | 1 | -0/+5 |
| | | | | object is uninitialized (#3958) | ||||
* | bpo-31770: Prevent a crash and refleaks when calling ↵ | Oren Milman | 2017-11-06 | 1 | -8/+7 |
| | | | | sqlite3.Cursor.__init__() more than once (#3968) | ||||
* | bpo-31740: Prevent refleaks when sqlite3.Connection.__init__() is called ↵ | Oren Milman | 2017-10-10 | 1 | -8/+8 |
| | | | | more than once (GH-3944) | ||||
* | sqlite: delete some bsddb cargo-culted code to work around Python 2.3/2.4 bugs | Benjamin Peterson | 2017-09-22 | 1 | -15/+0 |
| | |||||
* | closes bpo-31525: require sqlite3_prepare_v2 (#3666) | Benjamin Peterson | 2017-09-20 | 6 | -135/+43 |
| | | | | | 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 | 2 | -39/+0 |
| | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. |