summaryrefslogtreecommitdiff
path: root/Lib/sqlite3/test
AgeCommit message (Collapse)AuthorLines
2010-08-02Merged revisions 77942,79023 via svnmerge fromEzio Melotti-5/+5
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77942 | ezio.melotti | 2010-02-03 07:37:26 +0200 (Wed, 03 Feb 2010) | 1 line #7092: Silence more py3k warnings. Patch by Florent Xicluna. ........ r79023 | ezio.melotti | 2010-03-17 15:52:48 +0200 (Wed, 17 Mar 2010) | 1 line #7092: silence some more py3k warnings. ........
2010-03-21Merged revisions 78898 via svnmerge fromVictor Stinner-0/+6
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78898 | victor.stinner | 2010-03-13 04:27:07 +0100 (sam., 13 mars 2010) | 7 lines sqlite3: Fix a segfault on calling a connection with something else than a 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-05Issue #7670: sqlite3: Fixed crashes when operating on closed connections.Gerhard Häring-0/+67
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/+52
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
2008-02-23Patch #2167 from calvin: Remove unused importsChristian Heimes-1/+1
2008-01-01Fix an odd error which would only occur close to new year's eve, dueGuido van Rossum-2/+1
to use of datetime.datetime.now() instead of utcnow() for comparison. (I think the test can still fail if it's executed pretty much *at* new year's eve, but that's not worth fixing.)
2007-01-14Merged changes from standalone version 2.3.3. This should probably all beGerhard Häring-5/+55
merged into the 2.5 maintenance branch: - self->statement was not checked while fetching data, which could lead to crashes if you used the pysqlite API in unusual ways. Closing the cursor and continuing to fetch data was enough. - Converters are stored in a converters dictionary. The converter name is uppercased first. The old upper-casing algorithm was wrong and was replaced by a simple call to the Python string's upper() method instead. -Applied patch by Glyph Lefkowitz that fixes the problem with subsequent SQLITE_SCHEMA errors. - Improvement to the row type: rows can now be iterated over and have a keys() method. This improves compatibility with both tuple and dict a lot. - A bugfix for the subsecond resolution in timestamps. - Corrected the way the flags PARSE_DECLTYPES and PARSE_COLNAMES are checked for. Now they work as documented. - gcc on Linux sucks. It exports all symbols by default in shared libraries, so if symbols are not unique it can lead to problems with symbol lookup. pysqlite used to crash under Apache when mod_cache was enabled because both modules had the symbol cache_init. I fixed this by applying the prefix pysqlite_ almost everywhere. Sigh.
2006-07-02The sqlite3 module did cut off data from the SQLite database at the first nullGerhard Häring-2/+20
character before sending it to a custom converter. This has been fixed now.
2006-06-21Removed call to enable_callback_tracebacks that slipped in by accident.Gerhard Häring-1/+0
2006-06-15Re-revert this change. Install the version check and don't run the testNeal Norwitz-0/+2
until Gerhard has time to fully debug the issue. This affects versions before 3.2.1 (possibly only versions earlier than 3.1.3). Based on discussion on python-checkins.
2006-06-15Speculative checkin (requires approval of Gerhard Haering)Neal Norwitz-12/+0
This backs out the test changes in 46962 which prevented crashes by not running the tests via a version check. All the version checks added in that rev were removed from the tests. Code was added to the error handler in connection.c that seems to work with older versions of sqlite including 3.1.3.
2006-06-14- Added version checks in C code to make sure we don't trigger bugs in olderGerhard Häring-0/+12
SQLite versions. - Added version checks in test suite so that we don't execute tests that we know will fail with older (buggy) SQLite versions. Now, all tests should run against all SQLite versions from 3.0.8 until 3.3.6 (latest one now). The sqlite3 module can be built against all these SQLite versions and the sqlite3 module does its best to not trigger bugs in SQLite, but using SQLite 3.3.3 or later is recommended.
2006-06-14Whitespace normalization.Tim Peters-1/+1
2006-06-13Merged changes from external pysqlite 2.3.0 release. Documentation updates willGerhard Häring-37/+109
follow in a few hours at the latest. Then we should be ready for beta1.
2006-04-23Updated the sqlite3 module to the external pysqlite 2.2.2 version.Gerhard Häring-3/+42
2006-04-04Update to pysqlite 2.2.0Anthony Baxter-1/+172
2006-04-01merged the sqlite-integration branch.Anthony Baxter-0/+1713
This is based on pysqlite2.1.3, and provides a DB-API interface in the standard library. You'll need sqlite 3.2.2 or later to build this - if you have an earlier version, the C extension module will not be built.