summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
Commit message (Collapse)AuthorAgeFilesLines
* Issue #24257: Fixed incorrect uses of PyObject_IsInstance().Serhiy Storchaka2015-05-221-1/+1
|\ | | | | | | | | Fixed segmentation fault in sqlite3.Row constructor with faked cursor type. Fixed system error in the comparison of faked types.SimpleNamespace.
| * Issue #24257: Fixed incorrect uses of PyObject_IsInstance().Serhiy Storchaka2015-05-221-1/+1
| | | | | | | | | | Fixed segmentation fault in sqlite3.Row constructor with faked cursor type. Fixed system error in the comparison of faked types.SimpleNamespace.
* | Issue #20274: When calling a _sqlite.Connection, it now complains if passedLarry Hastings2015-05-081-3/+6
|\ \ | |/ | | | | | | | | any keyword arguments. Previously it silently ignored them. Also: merge related change from 3.4, also reported on Issue #20274.
| * Issue #20274: Remove ignored and erroneous "kwargs" parameters from threeLarry Hastings2015-05-081-3/+3
| | | | | | | | METH_VARARGS methods on _sqlite.Connection.
* | Issue #13583: sqlite3.Row now supports slice indexing.Serhiy Storchaka2015-03-311-2/+1
| | | | | | | | Tests by Jessica McKellar.
* | Removed unintentional trailing spaces in non-external and non-generated C files.Serhiy Storchaka2015-03-181-1/+1
| |
* | Issue #23571: PyObject_Call(), PyCFunction_Call() and call_function() nowVictor Stinner2015-03-061-4/+0
| | | | | | | | | | | | | | | | | | | | | | raise a SystemError if a function returns a result and raises an exception. The SystemError is chained to the previous exception. Refactor also PyObject_Call() and PyCFunction_Call() to make them more readable. Remove some checks which became useless (duplicate checks). Change reviewed by Serhiy Storchaka.
* | Issue #22883: Got rid of outdated references to PyInt and PyString in comments.Serhiy Storchaka2015-02-171-1/+1
| |
* | Issue #23450: Fixed possible integer overflows.Serhiy Storchaka2015-02-161-1/+1
| |
* | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka2015-02-022-10/+14
|\ \ | |/ | | | | and PyObject_AsWriteBuffer().
| * Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka2015-02-022-10/+14
| | | | | | | | and PyObject_AsWriteBuffer().
* | Issue #21147: sqlite3 now raises an exception if the request contains a nullSerhiy Storchaka2014-09-112-1/+6
|\ \ | |/ | | | | character instead of truncate it. Based on patch by Victor Stinner.
| * Issue #21147: sqlite3 now raises an exception if the request contains a nullSerhiy Storchaka2014-09-112-1/+6
| | | | | | | | character instead of truncate it. Based on patch by Victor Stinner.
* | Issue #22218: Fix "comparison between signed and unsigned integers" warning inVictor Stinner2014-08-171-1/+1
|/ | | | Modules/_sqlite/cursor.c.
* Issue #21975: Fixed crash when using uninitialized sqlite3.Row (in particularSerhiy Storchaka2014-08-061-11/+17
| | | | | when unpickling pickled sqlite3.Row). sqlite3.Row is now initialized in the __new__() method.
* Issue #21858: Better handling of Python exceptions in the sqlite3 module.Victor Stinner2014-06-261-16/+26
|
* Issue #10203: sqlite3.Row now truly supports sequence protocol. In particulrSerhiy Storchaka2014-05-281-2/+22
| | | | it supports reverse() and negative indices. Original patch by Claudiu Popa.
* Issue #20437: Fixed 22 potential bugs when deleting objects references.Serhiy Storchaka2014-02-091-6/+3
|\
| * Issue #20437: Fixed 21 potential bugs when deleting objects references.Serhiy Storchaka2014-02-091-6/+3
| |
* | (Merge 3.3) Issue #20026: Fix the sqlite module to handle correctly invalidVictor Stinner2013-12-191-1/+4
|\ \ | |/ | | | | isolation level (wrong type).
| * Issue #20026: Fix the sqlite module to handle correctly invalid isolation levelVictor Stinner2013-12-191-1/+4
| | | | | | | | (wrong type).
* | sqlite: Use Py_ssize_t to store a size instead of an intVictor Stinner2013-11-181-2/+4
| | | | | | | | Fix a compiler warning on Windows 64-bit
* | sqlite: raise an OverflowError if a string or a BLOB is longer than INT_MAXVictor Stinner2013-11-181-8/+16
| | | | | | | | | | | | bytes Fix compiler warnings on Windows 64-bit
* | Fix a compiler warning on Windows 64-bit: _sqlite moduleVictor Stinner2013-11-181-4/+9
| |
* | sqlite: raise an OverflowError if the result is longer than INT_MAX bytesVictor Stinner2013-11-181-2/+8
| | | | | | | | Fix a compiler warning on Windows 64-bit
* | Issue #19514: Deduplicate some _Py_IDENTIFIER declarations.Martin v. Löwis2013-11-071-3/+2
| | | | | | | | Patch by Andrei Dorian Duma.
* | Issue #19437: Fix pysqlite_cursor_iternext() of sqlite3, when the row factoryVictor Stinner2013-11-051-0/+5
| | | | | | | | | | fails, don't consume the row (restore it) and fail immediatly (don't call pysqlite_step())
* | Issue #19437: Fix pysqlite_connection_call() of sqlite3, return NULL whenVictor Stinner2013-11-051-17/+13
| | | | | | | | PyList_Append() fails
* | Issue #19437: Fix pysqlite_cursor_iternext() of sqlite3, handleVictor Stinner2013-11-051-0/+6
| | | | | | | | _pysqlite_fetch_one_row() failure
* | Issue #1772673: The type of `char*` arguments now changed to `const char*`.Serhiy Storchaka2013-10-191-1/+1
| |
* | (Merge 3.3) Fix compilation of the _sqlite module if threads are disabledVictor Stinner2013-08-271-0/+3
|\ \ | |/
| * Fix compilation of the _sqlite module if threads are disabledVictor Stinner2013-08-271-0/+3
| |
* | Issue #18701: Remove sqlitecompat.h.Serhiy Storchaka2013-08-161-63/+0
| |
* | Issue #18701: Remove support of old CPython versions (<3.0) from C code.Serhiy Storchaka2013-08-166-6/+0
| |
* | Issue #18519: Fix test_sqlite on old versions of libsqlite3Victor Stinner2013-08-011-3/+12
| | | | | | | | | | With old SQLite versions, _sqlite3_result_error() sets a new Python exception, so don't restore the previous exception.
* | Issue #18519: the Python authorizer callback of sqlite3 must not raise ↵Victor Stinner2013-07-261-21/+20
| | | | | | | | | | | | | | Python exceptions The exception is printed if sqlite3.enable_callback_tracebacks(True) has been called, otherwise the exception is cleared.
* | Issue #18488: Fix _pysqlite_final_callback()Victor Stinner2013-07-221-4/+4
| | | | | | | | | | | | | | | | | | Restore behaviour of Python 3.3: print the finalizer() error if sqlite3.enable_callback_tracebacks() has been called, clear the error otherwise. But keep (save/restore) also the AttributeError raised in _pysqlite_step_callback().
* | Issue #18519, #18408: Fix sqlite authorizer callbackVictor Stinner2013-07-211-15/+23
| | | | | | | | | | If a previous call to the authorizer callback failed and raised an exception, don't call the Python authorizer callback, but just return SQLITE_DENY.
* | Issue #18408: Fix _pysqlite_fetch_one_row(), in debug mode, don't callVictor Stinner2013-07-171-0/+5
| | | | | | | | type_call() with an exception set
* | Issue #18488: _pysqlite_final_callback() should not clear the exception set byVictor Stinner2013-07-171-0/+9
| | | | | | | | the last call to the step() method of a user function
* | Fix compilater warnings on Windows 64-bitVictor Stinner2013-05-161-1/+1
| |
* | Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3,Serhiy Storchaka2013-04-283-7/+7
|\ \ | |/ | | | | such as was shipped with Centos 5 and Mac OS X 10.4.
| * Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3,Serhiy Storchaka2013-04-283-7/+7
| | | | | | | | such as was shipped with Centos 5 and Mac OS X 10.4.
* | Issue #13773: sqlite3.connect() gets a new `uri` parameter to pass the ↵Antoine Pitrou2013-02-092-7/+33
|/ | | | filename as a URI, allowing to pass custom options.
* Issue #17073: Fix some integer overflows in sqlite3 module.Serhiy Storchaka2013-02-075-49/+127
|\
| * Issue #17073: Fix some integer overflows in sqlite3 module.Serhiy Storchaka2013-02-075-49/+127
| |
* | Merge branch '3.2'Petri Lehtinen2012-02-211-6/+2
|\ \ | |/ | | | | Closes #8033.
| * sqlite3: Fix 64-bit integer handling in user functions on 32-bit architecturesPetri Lehtinen2012-02-211-6/+2
| | | | | | | | Closes #8033.
| * Issue #10811: Fix recursive usage of cursors. Instead of crashing, raise a ↵Petri Lehtinen2012-02-062-10/+20
| | | | | | | | ProgrammingError now.
* | Undocument and clean up sqlite3.OptimizedUnicodePetri Lehtinen2012-02-096-35/+18
| | | | | | | | Closes #13921.