summaryrefslogtreecommitdiff
path: root/Modules/_sqlite
AgeCommit message (Collapse)AuthorLines
2012-02-21sqlite3: Fix 64-bit integer handling in user functions on 32-bit architecturesPetri Lehtinen-5/+8
Closes #8033.
2012-02-06Issue #10811: Fix recursive usage of cursors. Instead of crashing, raise a ↵Petri Lehtinen-10/+20
ProgrammingError now.
2012-02-01sqlite3: Handle strings with embedded zeros correctlyPetri Lehtinen-11/+13
Closes #13676.
2011-10-04Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.Antoine Pitrou-2/+2
Reported and diagnosed by Thomas Kluyver.
2011-03-16#11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti-1/+1
2010-05-05Remove an unnecessary variable.Brett Cannon-3/+0
Found using Clang's static analyzer.
2010-03-13sqlite3: Fix a segfault on calling a connection with something else than aVictor Stinner-0/+6
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-65/+323
2009-04-05#5615: make it possible to configure --without-threads again.Georg Brandl-6/+32
2009-02-21Issue #5341: Fix a variety of spelling errors.Mark Dickinson-1/+1
2008-09-12Issue #3846: Release GIL during calls to sqlite3_prepare. This improves ↵Gerhard Häring-0/+6
concurrent access to the same database file from multiple threads/processes.
2008-09-12Fixes issue #3103. In the sqlite3 module, made one more function static. All ↵Gerhard Häring-28/+28
renaming public symbos now have the pysqlite prefix to avoid name clashes. This at least once created problems where the same symbol name appeared somewhere in Apache and the sqlite3 module was used from mod_python.
2008-09-12sqlite3 module: Mark iterdump() method as "Non-standard" like all the other ↵Gerhard Häring-1/+1
methods not found in DB-API.
2008-08-22Silenced a compiler warning in the sqlite moduleChristian Heimes-2/+2
Modules/_sqlite/row.c:187: warning: suggest parentheses around && within || Reviewed by Benjamin Peterson
2008-07-16#3312: fix two sqlite3 crashes.Georg Brandl-3/+13
2008-07-13Issue #3153: sqlite leaks on error.Alexandre Vassalotti-23/+12
Changed statements of the form Py_DECREF(obj), obj = 0 to Py_CLEAR(obj).
2008-06-22Expand docstrings of sqlite3 functions.Georg Brandl-12/+52
2008-06-09This reverts r63675 based on the discussion in this thread:Gregory P. Smith-50/+50
http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
2008-05-31Fixed rowcount for SELECT statements. They're -1 now (again), for better ↵Gerhard Häring-15/+11
DB-API 2.0 compliance.
2008-05-26Renamed PyString to PyBytesChristian Heimes-50/+50
2008-05-04Implemented feature request 2157: Converter names are cut off at '('Gerhard Häring-1/+5
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-2/+26
sqlite3.Row type is now correctly hashable.
2008-05-04SQLite requires 64-bit integers in order to build. So the whole HAVE_LONG_LONGGerhard Häring-4/+0
#ifdefing was useless.
2008-03-28Update sqlite3 module to match current version of pysqlite.Gerhard Häring-15/+35
2008-03-28Accept patch issue2426 by Paul Kippes (kippesp).Gregory P. Smith-0/+48
Adds sqlite3.Connection.iterdump to allow dumping of databases.
2008-03-03Only DECREF if ret != NULLNeal Norwitz-1/+1
2008-02-29Updated to pysqlite 2.4.1. Documentation additions will come later.Gerhard Häring-202/+483
2008-01-19#1509: fix sqlite3 docstrings and docs w.r.t. cursor.fetchXXX methods.Georg Brandl-3/+3
2007-12-19#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵Christian Heimes-8/+8
Py_REFCNT. Macros for b/w compatibility are available.
2007-12-11Forward-port of commit 59184.Gerhard Häring-4/+14
- Backported a workaround for a bug in SQLite 3.2.x/3.3.x versions where a statement recompilation with no bound parameters lead to a segfault - Backported a fix necessary because of an SQLite API change in version 3.5. This prevents segfaults when executing empty queries, like our test suite does
2007-07-21PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis-22/+15
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
2007-06-05Patch by Tim Delany (missing DECREF). SF #1731330.Guido van Rossum-0/+1
2007-01-14Merged changes from standalone version 2.3.3. This should probably all beGerhard Häring-482/+516
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-28Fix spelling.Georg Brandl-3/+3
2006-07-02The sqlite3 module did cut off data from the SQLite database at the first nullGerhard Häring-3/+4
character before sending it to a custom converter. This has been fixed now.
2006-06-19Fixed a memory leak that was introduced with incorrect usage of the Python weakGerhard Häring-2/+2
reference API in pysqlite 2.2.1. Bumbed pysqlite version number to upcoming pysqlite 2.3.1 release.
2006-06-15Speculative checkin (requires approval of Gerhard Haering)Neal Norwitz-0/+2
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-4/+15
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-13Merged changes from external pysqlite 2.3.0 release. Documentation updates willGerhard Häring-58/+266
follow in a few hours at the latest. Then we should be ready for beta1.
2006-06-02More memory leaks from valgrindNeal Norwitz-0/+4
2006-04-28Fix some warnings on Mac OS X 10.4Neal Norwitz-0/+4
2006-04-23Updated the sqlite3 module to the external pysqlite 2.2.2 version.Gerhard Häring-261/+228
2006-04-16Fix valgrind problem with invalid memory readNeal Norwitz-2/+1
2006-04-16Fix memory leakNeal Norwitz-1/+5
2006-04-09Fix problem (not checking return result) reported by CoverityNeal Norwitz-1/+4
2006-04-06This change shouldn't have any functional effect. Coverity wasNeal Norwitz-1/+1
complaining because it seemed like parameters_iter could be NULL.
2006-04-06Fix unchecked return result from Coverity.Neal Norwitz-0/+2
2006-04-05upgrade to final version of pysqlite 2.2.0Anthony Baxter-30/+23
2006-04-04Fix a couple of memory issuesNeal Norwitz-3/+3
2006-04-04Update to pysqlite 2.2.0Anthony Baxter-129/+416