summaryrefslogtreecommitdiff
path: root/Modules/_sqlite/statement.c
AgeCommit message (Collapse)AuthorLines
2018-07-31[2.7] bpo-34234: Use _PyAnyInt_Check() and _PyAnyInt_CheckExact(). (GH-8479)Serhiy Storchaka-1/+1
2016-12-03fix refleak in null-containing error case (#21147)Benjamin Peterson-1/+2
2016-09-06fix unused variable warnings in pysqlite (closes #27967)Benjamin Peterson-3/+1
2014-09-11Issue #21147: sqlite3 now raises an exception if the request contains a nullSerhiy Storchaka-2/+5
character instead of truncate it. Based on patch by Victor Stinner.
2013-02-07Issue #17073: Fix some integer overflows in sqlite3 module.Serhiy Storchaka-10/+13
2012-02-01sqlite3: Handle strings with embedded zeros correctlyPetri Lehtinen-4/+4
Closes #13676.
2010-03-05Merged code from pysqlite 2.6.0.Gerhard Häring-1/+1
2008-09-12Issue #3846: Release GIL during calls to sqlite3_prepare. This improves ↵Gerhard Häring-0/+4
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-2/+2
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-06-09This reverts r63675 based on the discussion in this thread:Gregory P. Smith-9/+9
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-26Renamed PyString to PyBytesChristian Heimes-9/+9
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-6/+22
2008-02-29Updated to pysqlite 2.4.1. Documentation additions will come later.Gerhard Häring-62/+154
2007-12-19#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵Christian Heimes-1/+1
Py_REFCNT. Macros for b/w compatibility are available.
2007-12-11Forward-port of commit 59184.Gerhard Häring-1/+5
- 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-3/+2
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
2007-01-14Merged changes from standalone version 2.3.3. This should probably all beGerhard Häring-27/+27
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-04-23Updated the sqlite3 module to the external pysqlite 2.2.2 version.Gerhard Häring-2/+7
2006-04-16Fix valgrind problem with invalid memory readNeal Norwitz-2/+1
2006-04-05upgrade to final version of pysqlite 2.2.0Anthony Baxter-1/+1
2006-04-04Update to pysqlite 2.2.0Anthony Baxter-0/+1
2006-04-01Make ssize_t cleanNeal Norwitz-1/+1
2006-04-01backport r243 from the pysqlite2 svn repository - lowers the required versionAnthony Baxter-1/+143
of SQLite3 from 3.2.2 to 3.0.8, by providing an alternative to sqlite3_transfer_bindings. setup.py also handles the common (in debian and ubuntu, at least) case of a buggy sqlite3.h SQLITE_VERSION_NUMBER.
2006-04-01merged the sqlite-integration branch.Anthony Baxter-0/+285
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.