summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
Commit message (Collapse)AuthorAgeFilesLines
* Fix error message in sqlite connection thread check. (GH-6028)Takuya Akiba2018-03-261-2/+2
|
* bpo-27645: Fix version number in 'database in transaction' fallback (GH-6131)Aviv Palivoda2018-03-181-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 Gaifas2018-03-102-0/+142
|
* closes bpo-32460: ensure all non-static globals have initializers (#5061)Benjamin Peterson2017-12-313-16/+15
|
* Add the const qualifier to "char *" variables that refer to literal strings. ↵Serhiy Storchaka2017-11-111-1/+1
| | | | (#4370)
* bpo-31843: sqlite3.connect() now accepts PathLike objects as database name ↵Anders Lorentsen2017-11-072-4/+9
| | | | (#4299)
* bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor ↵Oren Milman2017-11-071-0/+5
| | | | object is uninitialized (#3958)
* bpo-31770: Prevent a crash and refleaks when calling ↵Oren Milman2017-11-071-8/+7
| | | | sqlite3.Cursor.__init__() more than once (#3968)
* bpo-31740: Prevent refleaks when sqlite3.Connection.__init__() is called ↵Oren Milman2017-10-101-8/+8
| | | | more than once (GH-3944)
* sqlite: delete some bsddb cargo-culted code to work around Python 2.3/2.4 bugsBenjamin Peterson2017-09-231-15/+0
|
* closes bpo-31525: require sqlite3_prepare_v2 (#3666)Benjamin Peterson2017-09-206-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 Pitrou2017-09-072-39/+0
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* bpo-30592: Fixed error messages for some builtins. (#1996)Serhiy Storchaka2017-06-082-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 Storchaka2017-03-232-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 Storchaka2017-03-232-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 Palivoda2017-03-035-9/+28
|
* bpo-28518: Start a transaction implicitly before a DML statement (#245)Berker Peksag2017-02-263-11/+12
| | | Patch by Aviv Palivoda.
* Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE whereverSerhiy Storchaka2017-01-231-6/+3
| | | | possible. Patch is writen with Coccinelle.
* Issue #28985: Update authorizer constants in sqlite3 moduleBerker Peksag2017-01-021-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 Storchaka2016-12-161-1/+1
| | | | dict.
* Issue #28915: Use _PyObject_CallNoArg()Victor Stinner2016-12-091-2/+2
| | | | Replace PyObject_CallFunction(func, NULL) with _PyObject_CallNoArg(func).
* Added the const qualifier to char* variables that refer to readonly internalSerhiy Storchaka2016-11-203-6/+6
| | | | UTF-8 represenatation of Unicode objects.
* Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSizeSerhiy Storchaka2016-11-204-9/+9
| | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
* Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka2016-11-161-1/+1
|\ | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.
| * Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka2016-11-161-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 Storchaka2016-09-261-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 Storchaka2016-09-261-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 Peksag2016-09-123-27/+17
| | | | | | | | | | | | Connection->inTransaction manually Patch adapted from https://github.com/ghaering/pysqlite/commit/9b79188edbc50faa24dc178afe24a10454f3fcad
* | Issue #28036: Remove unused pysqlite_flush_statement_cache functionBerker Peksag2016-09-111-20/+0
| |
* | Issue #10740: sqlite3 no longer implicitly commit an open transaction before ↵Berker Peksag2016-09-114-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 longBenjamin Peterson2016-09-081-1/+1
| |
* | Avoid calling functions with an empty string as format stringVictor Stinner2016-09-063-10/+10
| | | | | | | | Directly pass NULL rather than an empty string.
* | require a long long data type (closes #27961)Benjamin Peterson2016-09-061-19/+0
| |
* | Issue #27881: Fixed possible bugs when setting ↵Serhiy Storchaka2016-09-012-42/+35
|\ \ | |/ | | | | | | | | sqlite3.Connection.isolation_level. Based on patch by Xiang Zhang.
| * Issue #27881: Fixed possible bugs when setting ↵Serhiy Storchaka2016-09-012-42/+35
| | | | | | | | | | | | sqlite3.Connection.isolation_level. Based on patch by Xiang Zhang.
* | Issue #27861: Fixed a crash in sqlite3.Connection.cursor() when a factorySerhiy Storchaka2016-08-291-2/+11
|\ \ | |/ | | | | creates not a cursor. Patch by Xiang Zhang.
| * Issue #27861: Fixed a crash in sqlite3.Connection.cursor() when a factorySerhiy Storchaka2016-08-291-2/+11
| | | | | | | | creates not a cursor. Patch by Xiang Zhang.
* | Issue #10513: Merge from 3.5Berker Peksag2016-08-261-1/+0
|\ \ | |/
| * Issue #10513: Fix a regression in Connection.commit()Berker Peksag2016-08-261-1/+0
| | | | | | | | | | | | Statements should not be reset after a commit. Backported from https://github.com/ghaering/pysqlite/commit/029050896b1e6058573abeef5a8970384c0c7faa
* | Issue #21718: Merge from 3.5Berker Peksag2016-08-211-6/+5
|\ \ | |/
| * Issue #21718: cursor.description is now available for queries using CTEsBerker Peksag2016-08-211-6/+5
| | | | | | | | | | | | | | | | | | | | According to PEP 249, cursor.description must be available for any SELECT statements, such as those that use CTEs. Backported from https://github.com/ghaering/pysqlite/commit/f67fa9c898a4713850e16934046f0fe2cba8c44c Additional test cases added by me.
* | Issue #16864: Cursor.lastrowid now supports REPLACE statementBerker Peksag2016-06-141-1/+3
| | | | | | | | Initial patch by Alex LordThorsen.
* | Merge from 3.5Berker Peksag2016-06-121-1/+1
|\ \ | |/
| * Fix typo in _sqlite/module.hBerker Peksag2016-06-121-1/+1
| |
* | Issue #27190: Merge from 3.5Berker Peksag2016-06-121-0/+4
|\ \ | |/
| * Issue #27190: Raise NotSupportedError if sqlite3 is older than 3.3.1Berker Peksag2016-06-121-0/+4
| | | | | | | | Patch by Dave Sawyer.
* | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka2016-04-102-6/+6
|\ \ | |/ | | | | in places where Py_DECREF was used.
| * Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka2016-04-102-6/+6
| | | | | | | | in places where Py_DECREF was used.
* | Issue #26687: Use Py_RETURN_NONE macro in sqlite3 moduleBerker Peksag2016-04-094-32/+16
| |
* | Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-062-9/+9
|\ \ | |/