summaryrefslogtreecommitdiff
path: root/Modules/_sqlite
AgeCommit message (Collapse)AuthorLines
2018-12-06bpo-34052: Prevent SQLite functions from setting callbacks on exceptions. ↵Miss Islington (bot)-17/+13
(GH-8113). (GH-10946) (GH-10952) (cherry picked from commit 5b25f1d03100e2283c1b129d461ba68ac0169a14) (cherry picked from commit 1de91a0032fed500ddd3d8c4fb7a38c0b8719f67) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
2018-11-27[3.6] bpo-33029: Fix signatures of getter and setter functions. (GH-10746) ↵Serhiy Storchaka-4/+6
(GH-10749) Fix also return type for few other functions (clear, releasebuffer). (cherry picked from commit d4f9cf5545d6d8844e0726552ef2e366f5cc3abd)
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-09[3.6] prefix internal sqlite symbols with _pysqlite_ (GH-8215). (GH-8218)Benjamin Peterson-20/+20
(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-04-01[3.6] Fix error message in sqlite connection thread check. (GH-6028). (GH-6324)Serhiy Storchaka-2/+2
(cherry picked from commit 030345c0bfc2f76684666fe5c61e766ba5debfe6) Co-authored-by: Takuya Akiba <469803+iwiwi@users.noreply.github.com>
2017-11-06bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor ↵Miss Islington (bot)-0/+5
object is uninitialized (GH-3958) (#4303) (cherry picked from commit edb13ae48c17210fa4b2d40a6833ca09db5c121b)
2017-11-06bpo-31770: Prevent a crash and refleaks when calling ↵Miss Islington (bot)-8/+7
sqlite3.Cursor.__init__() more than once (GH-3968) (#4301) (cherry picked from commit e56ab746a965277ffcc4396d8a0902b6e072d049)
2017-02-26bpo-28518: Start a transaction implicitly before a DML statement (#245) (#318)Berker Peksag-11/+12
Patch by Aviv Palivoda. (cherry picked from commit 4a926caf8e5fd8af771b2c34bfb6e91c732331fe)
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
2016-06-12Issue #27190: Merge from 3.5Berker Peksag-0/+4
2016-06-12Issue #27190: Raise NotSupportedError if sqlite3 is older than 3.3.1Berker Peksag-0/+4
Patch by Dave Sawyer.
2016-04-10Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka-6/+6
in places where Py_DECREF was used.
2016-04-10Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka-6/+6
in places where Py_DECREF was used.
2016-04-09Issue #26687: Use Py_RETURN_NONE macro in sqlite3 moduleBerker Peksag-32/+16
2016-04-06Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka-9/+9
2016-04-06Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka-9/+9
2015-12-27Issue #20440: More use of Py_SETREF.Serhiy Storchaka-2/+2
This patch is manually crafted and contains changes that couldn't be handled automatically.
2015-12-27Issue #20440: More use of Py_SETREF.Serhiy Storchaka-2/+2
This patch is manually crafted and contains changes that couldn't be handled automatically.
2015-12-25Issue #25923: Added the const qualifier to static constant arrays.Serhiy Storchaka-5/+5
2015-12-24Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka-16/+10
macro Py_SETREF.
2015-05-22Issue #24257: Fixed incorrect uses of PyObject_IsInstance().Serhiy Storchaka-1/+1
Fixed segmentation fault in sqlite3.Row constructor with faked cursor type. Fixed system error in the comparison of faked types.SimpleNamespace.
2015-05-22Issue #24257: Fixed incorrect uses of PyObject_IsInstance().Serhiy Storchaka-1/+1
Fixed segmentation fault in sqlite3.Row constructor with faked cursor type. Fixed system error in the comparison of faked types.SimpleNamespace.
2015-05-08Issue #20274: When calling a _sqlite.Connection, it now complains if passedLarry Hastings-3/+6
any keyword arguments. Previously it silently ignored them. Also: merge related change from 3.4, also reported on Issue #20274.
2015-05-08Issue #20274: Remove ignored and erroneous "kwargs" parameters from threeLarry Hastings-3/+3
METH_VARARGS methods on _sqlite.Connection.
2015-03-31Issue #13583: sqlite3.Row now supports slice indexing.Serhiy Storchaka-2/+1
Tests by Jessica McKellar.
2015-03-18Removed unintentional trailing spaces in non-external and non-generated C files.Serhiy Storchaka-1/+1
2015-03-06Issue #23571: PyObject_Call(), PyCFunction_Call() and call_function() nowVictor Stinner-4/+0
raise a SystemError if a function returns a result and raises an exception. The SystemError is chained to the previous exception. Refactor also PyObject_Call() and PyCFunction_Call() to make them more readable. Remove some checks which became useless (duplicate checks). Change reviewed by Serhiy Storchaka.
2015-02-17Issue #22883: Got rid of outdated references to PyInt and PyString in comments.Serhiy Storchaka-1/+1