Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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-30 | 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-10 | 4 | -19/+19 |
| | |||||
* | delete some unused pysqlite forward declarations (GH-8211) | Benjamin Peterson | 2018-07-10 | 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-10 | 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-07 | 2 | -4/+9 |
| | | | | (#4299) | ||||
* | bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor ↵ | Oren Milman | 2017-11-07 | 1 | -0/+5 |
| | | | | object is uninitialized (#3958) | ||||
* | bpo-31770: Prevent a crash and refleaks when calling ↵ | Oren Milman | 2017-11-07 | 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-23 | 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. | ||||
* | bpo-30592: Fixed error messages for some builtins. (#1996) | Serhiy Storchaka | 2017-06-08 | 2 | -2/+2 |
| | | | | | 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 | 2 | -2/+2 |
| | | | | | 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 | 2 | -2/+2 |
| | | | | | | | | | | | * 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 | 5 | -9/+28 |
| | |||||
* | bpo-28518: Start a transaction implicitly before a DML statement (#245) | Berker Peksag | 2017-02-26 | 3 | -11/+12 |
| | | | Patch by Aviv Palivoda. | ||||
* | 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 #28985: Update authorizer constants in sqlite3 module | Berker Peksag | 2017-01-02 | 1 | -0/+13 |
| | | | | | | | | | | | Dates and version information from the changelog: * 2006-08-12 (3.3.7) added SQLITE_CREATE_VTABLE, SQLITE_DROP_VTABLE * 2006-10-09 (3.3.8) added SQLITE_FUNCTION * 2009-01-12 (3.6.8) added SQLITE_SAVEPOINT * 2014-02-03 (3.8.3) added SQLITE_RECURSIVE Patch by Dingyuan Wang. | ||||
* | Issue #28959: Added private macro PyDict_GET_SIZE for retrieving the size of ↵ | Serhiy Storchaka | 2016-12-16 | 1 | -1/+1 |
| | | | | dict. | ||||
* | 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 | 3 | -6/+6 |
| | | | | UTF-8 represenatation of Unicode objects. | ||||
* | Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize | Serhiy Storchaka | 2016-11-20 | 4 | -9/+9 |
| | | | | 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. | ||||
* | | Issue #28037: Use sqlite3_get_autocommit() instead of setting ↵ | Berker Peksag | 2016-09-12 | 3 | -27/+17 |
| | | | | | | | | | | | | Connection->inTransaction manually Patch adapted from https://github.com/ghaering/pysqlite/commit/9b79188edbc50faa24dc178afe24a10454f3fcad | ||||
* | | Issue #28036: Remove unused pysqlite_flush_statement_cache function | Berker Peksag | 2016-09-11 | 1 | -20/+0 |
| | | |||||
* | | Issue #10740: sqlite3 no longer implicitly commit an open transaction before ↵ | Berker Peksag | 2016-09-11 | 4 | -105/+45 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DDL statements This commit contains the following commits from ghaering/pysqlite: * https://github.com/ghaering/pysqlite/commit/f254c534948c41c0ceb8cbabf0d4a2f547754739 * https://github.com/ghaering/pysqlite/commit/796b3afe38cfdac5d7d5ec260826b0a596554631 * https://github.com/ghaering/pysqlite/commit/cae87ee68613697a5f4947b4a0941f59a28da1b6 * https://github.com/ghaering/pysqlite/commit/3567b31bb5e5b226ba006213a9c69dde3f155faf With the following additions: * Fixed a refcount error * Fixed a compiler warning * Made the string comparison a little more robust * Added a whatsnew entry | ||||
* | | more PY_LONG_LONG to long long | Benjamin Peterson | 2016-09-08 | 1 | -1/+1 |
| | | |||||
* | | Avoid calling functions with an empty string as format string | Victor Stinner | 2016-09-06 | 3 | -10/+10 |
| | | | | | | | | Directly pass NULL rather than an empty string. | ||||
* | | require a long long data type (closes #27961) | Benjamin Peterson | 2016-09-06 | 1 | -19/+0 |
| | |