summaryrefslogtreecommitdiff
path: root/Lib/sqlite3/test
AgeCommit message (Collapse)AuthorLines
2018-12-06bpo-34052: Prevent SQLite functions from setting callbacks on exceptions. ↵Miss Islington (bot)-19/+64
(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>
2017-11-06bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor ↵Miss Islington (bot)-0/+3
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)-0/+18
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-0/+9
Patch by Aviv Palivoda. (cherry picked from commit 4a926caf8e5fd8af771b2c34bfb6e91c732331fe)
2016-12-31Issue #29123: Merge from 3.5Berker Peksag-2/+1
2016-12-31Issue #29123: Make CheckSqlTimestamp more robustBerker Peksag-2/+1
2016-09-27Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation()Serhiy Storchaka-0/+22
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-0/+22
if pass invalid string-like object as a name. Patch by Xiang Zhang.
2016-09-11Issue #10740: sqlite3 no longer implicitly commit an open transaction before ↵Berker Peksag-8/+28
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-07Issue #21250: Add tests for SQLite's ON CONFLICT clauseBerker Peksag-1/+100
Initial patch by Alex LordThorsen.
2016-09-01Issue #27881: Fixed possible bugs when setting ↵Serhiy Storchaka-4/+27
sqlite3.Connection.isolation_level. Based on patch by Xiang Zhang.
2016-09-07Issue #21250: Merge from 3.5Berker Peksag-1/+100
2016-09-01Issue #27881: Fixed possible bugs when setting ↵Serhiy Storchaka-4/+27
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-3/+17
creates not a cursor. Patch by Xiang Zhang.
2016-08-29Issue #27861: Fixed a crash in sqlite3.Connection.cursor() when a factorySerhiy Storchaka-3/+17
creates not a cursor. Patch by Xiang Zhang.
2016-08-26Issue #10513: Merge from 3.5Berker Peksag-0/+31
2016-08-26Issue #10513: Fix a regression in Connection.commit()Berker Peksag-0/+31
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-1/+41
2016-08-21Issue #21718: cursor.description is now available for queries using CTEsBerker Peksag-1/+41
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/+42
Initial patch by Alex LordThorsen.
2016-06-14Mark tests as skipped when a SQLite version is not supportedBerker Peksag-16/+9
2016-06-14Remove empty setUp and tearDown methods from sqlite3 testsBerker Peksag-18/+0
They are not used as base classes by another tests so they can safely be removed.
2016-06-14Replace more boilerplate code with modern unittest features in sqlite3 testsBerker Peksag-13/+6
2016-06-12Modernize sqlite3 testsBerker Peksag-257/+62
Update current tests that use old pattern with assertRaises to make them more maintainable.
2016-06-12Issue #27190: Raise NotSupportedError if sqlite3 is older than 3.3.1Berker Peksag-0/+6
Patch by Dave Sawyer.
2016-06-12Issue #27188: Fix various sqlite3 documentation errorsBerker Peksag-0/+12
* Connection.execute* methods don't create intermediate cursor objects * Fix description of seq_of_parameters parameter * Clarify that Warning is sqlite3.Warning * sql_script parameter of Cursor.executescript() doesn't accept bytes * Add missing tests * Fix various markup errors Initial patch by Dave Sawyer.
2016-04-17Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka-1/+1
2016-03-27Issue #23758: Improve num_params docs of create_{function,aggregate} functionsBerker Peksag-0/+31
If you pass -1, the callable can take any number of arguments. Added tests to verify the behavior. Initial patch by Cédric Krier.
2015-05-22Issue #24257: Fixed incorrect uses of PyObject_IsInstance().Serhiy Storchaka-0/+8
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-0/+8
Fixed segmentation fault in sqlite3.Row constructor with faked cursor type. Fixed system error in the comparison of faked types.SimpleNamespace.
2015-03-31Issue #13583: sqlite3.Row now supports slice indexing.Serhiy Storchaka-0/+18
Tests by Jessica McKellar.
2015-03-12Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka-12/+3
Fixed 2 to 3 porting bug in pynche.ColorDB.
2014-09-11Issue #21147: sqlite3 now raises an exception if the request contains a nullSerhiy Storchaka-0/+10
character instead of truncate it. Based on patch by Victor Stinner.
2014-05-28Issue #10203: sqlite3.Row now truly supports sequence protocol. In particulrSerhiy Storchaka-3/+23
it supports reverse() and negative indices. Original patch by Claudiu Popa.
2014-03-12merge 3.3 (#20901)Benjamin Peterson-1/+1
2014-03-12weaken callback count inequality (closes #20901)Benjamin Peterson-1/+1
2014-02-15merge 3.3 (#20080)Benjamin Peterson-0/+1
2014-02-15add missing test assertion (closes #20080)Benjamin Peterson-0/+1
Patch by Vajrasky Kok.
2013-12-19(Merge 3.3) Issue #20026: Fix the sqlite module to handle correctly invalidVictor Stinner-0/+5
isolation level (wrong type).
2013-12-19Issue #20026: Fix the sqlite module to handle correctly invalid isolation levelVictor Stinner-0/+5
(wrong type).
2013-11-17Issue #19601: Use specific asserts in sqlite3 tests.Serhiy Storchaka-30/+20
2013-11-17Issue #19601: Use specific asserts in sqlite3 tests.Serhiy Storchaka-30/+20
2013-08-17#18741: merge with 3.3.Ezio Melotti-3/+5
2013-08-17#18741: fix more typos. Patch by Févry Thibault.Ezio Melotti-3/+5
2013-07-04Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon-2/+2
2013-06-13Issue #18200: Update the stdlib (except tests) to useBrett Cannon-2/+2
ModuleNotFoundError.
2013-02-26Issue #14720: Enhance sqlite3 microsecond conversion, document its behaviorPetri Lehtinen-2/+11
2013-02-26Issue #14720: Enhance sqlite3 microsecond conversion, document its behaviorPetri Lehtinen-2/+11
2013-02-26Issue #14720: Enhance sqlite3 microsecond conversion, document its behaviorPetri Lehtinen-2/+11
2013-02-23Issue #14720: sqlite3: Convert datetime microseconds correctlyPetri Lehtinen-0/+17