summaryrefslogtreecommitdiff
path: root/Lib/sqlite3
AgeCommit message (Collapse)AuthorLines
2019-09-17[2.7] bpo-38175: Fix a memory leak in comparison of sqlite3.Row objects. ↵Serhiy Storchaka-7/+12
(GH-16155). (GH-16215) (cherry picked from commit 8debfa50407107ff2329d01081cdc12d359f1d12)
2018-12-20bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. ↵Zackery Spytz-0/+4
(GH-11175) (GH-11249) (cherry picked from commit 842acaab1376c5c84fd5966bb6070e289880e1ca)
2018-12-06[2.7] bpo-34052: Prevent SQLite functions from setting callbacks on ↵Serhiy Storchaka-19/+65
exceptions. (GH-8113). (GH-10946) (GH-10955) (cherry picked from commit 5b25f1d03100e2283c1b129d461ba68ac0169a14) (cherry picked from commit 1de91a0032fed500ddd3d8c4fb7a38c0b8719f67) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>.
2017-11-08bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor ↵Oren Milman-0/+3
object is uninitialized (GH-4333)
2017-11-06bpo-31770: Prevent a crash and refleaks when calling ↵Miss Islington (bot)-0/+18
sqlite3.Cursor.__init__() more than once (GH-3968) (#4302) (cherry picked from commit e56ab746a965277ffcc4396d8a0902b6e072d049)
2017-01-16revert dd13098a5dc2 (#29006, #10513)Benjamin Peterson-0/+30
2017-01-11revert 030e100f048a (#29006, #10513)Benjamin Peterson-30/+0
2017-01-01Issue #29123: Make CheckSqlTimestamp more robustBerker Peksag-2/+1
2016-09-27Issue #27897: Backported tests.Serhiy Storchaka-0/+22
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: Fix a regression in Connection.commit()Berker Peksag-0/+30
Statements should not be reset after a commit. Backported from https://github.com/ghaering/pysqlite/commit/029050896b1e6058573abeef5a8970384c0c7faa
2016-07-11English spelling and grammar fixesMartin Panter-1/+1
2016-04-17Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka-2/+2
2015-05-22Issue #24257: Fixed segmentation fault in sqlite3.Row constructor with fakedSerhiy Storchaka-0/+8
cursor type.
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-09-05Issue #22340: Fix Python 3 warnings in Python 2 testsVictor Stinner-11/+23
2014-05-28Issue #10203: sqlite3.Row now truly supports sequence protocol. In particularSerhiy Storchaka-3/+33
it supports reverse() and negative indices. Original patch by Claudiu Popa.
2014-03-12weaken callback count inequality (closes #20901)Benjamin Peterson-1/+1
2014-02-15add missing test assertion (closes #20080)Benjamin Peterson-0/+1
Patch by Vajrasky Kok.
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-08-17#18741: fix more typos. Patch by Févry Thibault.Ezio Melotti-3/+5
2013-02-26Issue #14720: Enhance sqlite3 microsecond conversion, document its behaviorPetri Lehtinen-4/+13
2013-02-23Issue #14720: sqlite3: Convert datetime microseconds correctlyPetri Lehtinen-2/+19
Patch by Lowe Thiderman
2013-02-07Issue #17073: Fix some integer overflows in sqlite3 module.Serhiy Storchaka-12/+67
2013-01-10#15109: revert '%'->'format' changes in 4b105d328fe7 to fix regression.R David Murray-3/+5
With '%', non-ascii worked because the '%' automatically got promoted to unicode. With format that doesn't happen, which led to encoding errors. This fix goes back to using %, and adds a test to make sure non-ascii string values work in iterdump.
2013-01-10#15545: sort iterdump via SQL instead of in python codeR David Murray-1/+23
Although there is not a regression in Python2, we make the same update here to keep the code bases in sync. (The fix for issue 9750 introduced a regression in Python 3 by sorting the row objects returned by fetchall. But if a row_factory such as sqlite3.Row is used, the rows may not be sortable (in Python3), which leads to an exception. The sorting is still a nice idea, so the patch moves the sort into the sql.) Fix and test by Peter Otten.
2012-02-21sqlite3: Fix 64-bit integer handling in user functions on 32-bit architecturesPetri Lehtinen-0/+18
Closes #8033.
2012-02-17Fix a variable scoping error in an sqlite3 testPetri Lehtinen-3/+3
Initial patch by Torsten Landschoff. Closes #11689.
2012-02-12Fix sqlite3.Connection.iterdump on tables/fields with reserved names or quotesPetri Lehtinen-22/+36
Closes #9750
2012-02-06Issue #10811: Fix recursive usage of cursors. Instead of crashing, raise a ↵Petri Lehtinen-0/+22
ProgrammingError now.
2012-02-01sqlite3: Handle strings with embedded zeros correctlyPetri Lehtinen-1/+47
Closes #13676.
2010-11-21Merged revisions 86596 via svnmerge fromEzio Melotti-3/+3
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
2010-04-27Issue #7449, last part (11): fix many tests if thread support is disabledVictor Stinner-1/+5
* Use try/except ImportError or test_support.import_module() to import thread and threading modules * Add @unittest.skipUnless(threading, ...) to testcases using threads
2010-03-13sqlite3: Fix a segfault on calling a connection with something else than aVictor Stinner-7/+12
string. Initialize all attributes to be able to call the statement destructor on error. Avoid also a duplicate connection in some tests: setUp() does already open a connection (":memory:").
2010-03-05Merged code from pysqlite 2.6.0.Gerhard Häring-17/+252
2010-02-03#7092: Silence more py3k warnings. Patch by Florent Xicluna.Ezio Melotti-5/+5
2009-09-12#6026 - fix tests that failed without zlibEzio Melotti-1/+7
2009-07-04Merge r73838 from py3k branch. Use the nondeprecated unittest methodGregory P. Smith-155/+155
names.
2008-08-04Remove usage of apply() in sqlite3 to silence warnings under -3.Brett Cannon-3/+3
2008-07-16#3312: fix two sqlite3 crashes.Georg Brandl-0/+14
2008-05-31Fixed rowcount for SELECT statements. They're -1 now (again), for better ↵Gerhard Häring-0/+9
DB-API 2.0 compliance.
2008-05-04Implemented feature request 2157: Converter names are cut off at '('Gerhard Häring-1/+16
characters. This avoids the common case of something like 'NUMBER(10)' not being parsed as 'NUMBER', like expected. Also corrected the docs about converter names being case-sensitive. They aren't any longer.
2008-05-04Applied sqliterow-richcmp.diff patch from Thomas Heller in Issue2152. TheGerhard Häring-0/+20
sqlite3.Row type is now correctly hashable.
2008-04-05Prevent test_sqlite from hanging on older versions of sqlite.Neal Norwitz-0/+8
The problem is that when trying to do the second insert, sqlite seems to sleep for a very long time. Here is the output from strace: read(6, "SQLite format 3\0\4\0\1\1\0@ \0\0\0\1\0\0\0\0"..., 1024) = 1024 nanosleep({4294, 966296000}, <unfinished ...> I don't know which version this was fixed in, but 3.2.1 definitely fails.
2008-03-28These svn adds were forgotten in r62000Gregory P. Smith-0/+115
2008-03-28Update sqlite3 module to match current version of pysqlite.Gerhard Häring-2/+2
2008-03-05Catch OSError when trying to remove a file in case removal fails. ThisNeal Norwitz-2/+5
should prevent a failure in tearDown masking any real test failure.
2008-03-02Made sqlite3 module's regression tests work with SQLite versions that don'tGerhard Häring-2/+3
support "create table if not exists", yet.
2008-02-29Updated to pysqlite 2.4.1. Documentation additions will come later.Gerhard Häring-11/+295