summaryrefslogtreecommitdiff
path: root/Modules/_sqlite
AgeCommit message (Collapse)AuthorLines
2018-12-05bpo-34052: Prevent SQLite functions from setting callbacks on exceptions. ↵Serhiy Storchaka-17/+13
(GH-8113). (GH-10946) (cherry picked from commit 5b25f1d03100e2283c1b129d461ba68ac0169a14) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
2018-11-27bpo-33029: Fix signatures of getter and setter functions. (GH-10746)Miss Islington (bot)-4/+6
Fix also return type for few other functions (clear, releasebuffer). (cherry picked from commit d4f9cf5545d6d8844e0726552ef2e366f5cc3abd) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-09-20bpo-34743: Fix test_database_source_name under SQLite 3.7.9 (GH-9426)Miss Islington (bot)-0/+6
(cherry picked from commit b10a64d117de6121ea3e79c467c4107f8f399f3d) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
2018-09-20bpo-32215: Fix performance regression in sqlite3 (GH-8511)Miss Islington (bot)-4/+4
(cherry picked from commit 8d1e190fc507a9e304f6817e761e9f628a23cbd8) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
2018-07-09prefix internal sqlite symbols with _pysqlite_ (GH-8215)Miss Islington (bot)-19/+19
(cherry picked from commit 7762e4d3872818272800dfbd8e1d8e3a689eb8f2) Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-07-09delete some unused pysqlite forward declarations (GH-8211)Miss Islington (bot)-4/+0
(cherry picked from commit d6d4432724b12efc0d280b8eb80bca0deb8d4323) Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-03-26Fix error message in sqlite connection thread check. (GH-6028)Miss Islington (bot)-2/+2
(cherry picked from commit 030345c0bfc2f76684666fe5c61e766ba5debfe6) Co-authored-by: Takuya Akiba <469803+iwiwi@users.noreply.github.com>
2018-03-18bpo-27645: Fix version number in 'database in transaction' fallback (GH-6131)Miss Islington (bot)-2/+2
It was actually fixed in SQLite 3.8.8, not 3.8.7. (cherry picked from commit bbf7bb7a636b3112ef6f6b31df385606d52517ce) Co-authored-by: Aviv Palivoda <palaviv@gmail.com>
2018-03-11bpo-27645: Add support for native backup facility of SQLite (GH-4238)Miss Islington (bot)-0/+142
(cherry picked from commit d7aed4102d2a40c74553240c7f03585624d27aea) Co-authored-by: Emanuele Gaifas <lelegaifax@gmail.com>
2017-12-31closes bpo-32460: ensure all non-static globals have initializers (#5061)Benjamin Peterson-15/+14
2017-11-11Add the const qualifier to "char *" variables that refer to literal strings. ↵Serhiy Storchaka-1/+1
(#4370)
2017-11-06bpo-31843: sqlite3.connect() now accepts PathLike objects as database name ↵Anders Lorentsen-4/+9
(#4299)
2017-11-06bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor ↵Oren Milman-0/+5
object is uninitialized (#3958)
2017-11-06bpo-31770: Prevent a crash and refleaks when calling ↵Oren Milman-8/+7
sqlite3.Cursor.__init__() more than once (#3968)
2017-10-10bpo-31740: Prevent refleaks when sqlite3.Connection.__init__() is called ↵Oren Milman-8/+8
more than once (GH-3944)
2017-09-22sqlite: delete some bsddb cargo-culted code to work around Python 2.3/2.4 bugsBenjamin Peterson-15/+0
2017-09-20closes bpo-31525: require sqlite3_prepare_v2 (#3666)Benjamin Peterson-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.
2017-09-07bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou-39/+0
* Remove Setup.config * Always define WITH_THREAD for compatibility.
2017-06-08bpo-30592: Fixed error messages for some builtins. (#1996)Serhiy Storchaka-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.
2017-03-23Use NULL rather than 0. (#778)Serhiy Storchaka-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.
2017-03-23bpo-6532: Make the thread id an unsigned integer. (#781)Serhiy Storchaka-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().
2017-03-03bpo-9303: Migrate sqlite3 module to _v2 API to enhance performance (#359)Aviv Palivoda-9/+28
2017-02-26bpo-28518: Start a transaction implicitly before a DML statement (#245)Berker Peksag-11/+12
Patch by Aviv Palivoda.
2017-01-23Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE whereverSerhiy Storchaka-6/+3
possible. Patch is writen with Coccinelle.
2017-01-02Issue #28985: Update authorizer constants in sqlite3 moduleBerker Peksag-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.
2016-12-16Issue #28959: Added private macro PyDict_GET_SIZE for retrieving the size of ↵Serhiy Storchaka-1/+1
dict.
2016-12-09Issue #28915: Use _PyObject_CallNoArg()Victor Stinner-2/+2
Replace PyObject_CallFunction(func, NULL) with _PyObject_CallNoArg(func).
2016-11-20Added the const qualifier to char* variables that refer to readonly internalSerhiy Storchaka-6/+6
UTF-8 represenatation of Unicode objects.
2016-11-20Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSizeSerhiy Storchaka-9/+9
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
2016-11-16Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka-1/+1
_PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.
2016-11-16Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka-1/+1
_PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.
2016-09-27Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation()Serhiy Storchaka-2/+4
if pass invalid string-like object as a name. Patch by Xiang Zhang.
2016-09-27Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation()Serhiy Storchaka-2/+4
if pass invalid string-like object as a name. Patch by Xiang Zhang.
2016-09-12Issue #28037: Use sqlite3_get_autocommit() instead of setting ↵Berker Peksag-27/+17
Connection->inTransaction manually Patch adapted from https://github.com/ghaering/pysqlite/commit/9b79188edbc50faa24dc178afe24a10454f3fcad
2016-09-11Issue #28036: Remove unused pysqlite_flush_statement_cache functionBerker Peksag-20/+0
2016-09-11Issue #10740: sqlite3 no longer implicitly commit an open transaction before ↵Berker Peksag-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
2016-09-01Issue #27881: Fixed possible bugs when setting ↵Serhiy Storchaka-41/+34
sqlite3.Connection.isolation_level. Based on patch by Xiang Zhang.
2016-09-08more PY_LONG_LONG to long longBenjamin Peterson-1/+1
2016-09-05Avoid calling functions with an empty string as format stringVictor Stinner-10/+10
Directly pass NULL rather than an empty string.
2016-09-05require a long long data type (closes #27961)Benjamin Peterson-19/+0
2016-09-01Issue #27881: Fixed possible bugs when setting ↵Serhiy Storchaka-41/+34
sqlite3.Connection.isolation_level. Based on patch by Xiang Zhang.
2016-08-29Issue #27861: Fixed a crash in sqlite3.Connection.cursor() when a factorySerhiy Storchaka-2/+11
creates not a cursor. Patch by Xiang Zhang.
2016-08-29Issue #27861: Fixed a crash in sqlite3.Connection.cursor() when a factorySerhiy Storchaka-2/+11
creates not a cursor. Patch by Xiang Zhang.
2016-08-26Issue #10513: Merge from 3.5Berker Peksag-1/+0
2016-08-26Issue #10513: Fix a regression in Connection.commit()Berker Peksag-1/+0
Statements should not be reset after a commit. Backported from https://github.com/ghaering/pysqlite/commit/029050896b1e6058573abeef5a8970384c0c7faa
2016-08-21Issue #21718: Merge from 3.5Berker Peksag-6/+5
2016-08-21Issue #21718: cursor.description is now available for queries using CTEsBerker Peksag-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.
2016-06-14Issue #16864: Cursor.lastrowid now supports REPLACE statementBerker Peksag-1/+3
Initial patch by Alex LordThorsen.
2016-06-12Merge from 3.5Berker Peksag-1/+1
2016-06-12Fix typo in _sqlite/module.hBerker Peksag-1/+1