summaryrefslogtreecommitdiff
path: root/Modules/_sqlite/cursor.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-39652: Truncate the column name after '[' only if PARSE_COLNAMES is set. ↵Serhiy Storchaka2020-03-211-7/+22
| | | | (GH-18942)
* bpo-39245: Switch to public API for Vectorcall (GH-18460)Petr Viktorin2020-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The bulk of this patch was generated automatically with: for name in \ PyObject_Vectorcall \ Py_TPFLAGS_HAVE_VECTORCALL \ PyObject_VectorcallMethod \ PyVectorcall_Function \ PyObject_CallOneArg \ PyObject_CallMethodNoArgs \ PyObject_CallMethodOneArg \ ; do echo $name git grep -lwz _$name | xargs -0 sed -i "s/\b_$name\b/$name/g" done old=_PyObject_FastCallDict new=PyObject_VectorcallDict git grep -lwz $old | xargs -0 sed -i "s/\b$old\b/$new/g" and then cleaned up: - Revert changes to in docs & news - Revert changes to backcompat defines in headers - Nudge misaligned comments
* bpo-39496: Remove redundant checks from _sqlite/cursor.c (GH-18270)Alex Henrie2020-02-011-20/+6
|
* bpo-39497: Remove unused variable from pysqlite_cursor_executescript (GH-18271)Alex Henrie2020-01-301-3/+0
|
* bpo-39494: Remove extra null terminators from kwlist vars (GH-18267)Alex Henrie2020-01-301-1/+1
|
* Replace _pysqlite_long_from_int64() with PyLong_FromLongLong() (GH-16882)Sergey Fedoseev2019-10-231-2/+2
|
* bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267)Jeroen Demeyer2019-07-081-1/+1
|
* bpo-37483: add _PyObject_CallOneArg() function (#14558)Jeroen Demeyer2019-07-041-1/+1
|
* bpo-37406: sqlite3 raises TypeError for wrong operation type (GH-14386)Victor Stinner2019-06-261-12/+2
| | | | | The sqlite3 module now raises TypeError, rather than ValueError, if operation argument type is not str: execute(), executemany() and calling a connection.
* bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵Jeroen Demeyer2019-05-301-2/+2
| | | | | | | | | (GH-13464) Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async
* bpo-32788: Better error handling in sqlite3. (GH-3723)Serhiy Storchaka2018-12-101-72/+53
| | | Propagate unexpected errors (like MemoryError and KeyboardInterrupt) to user.
* bpo-33012: Fix invalid function cast warnings with gcc 8. (GH-6749)Serhiy Storchaka2018-11-271-1/+1
| | | | | | Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS excluding Argument Clinic generated code.
* Remove creation of a list for row_cast_map in pysqlite_cursor_init() (GH-8494)Sergey Fedoseev2018-07-311-5/+2
| | | | | This list is never used: if detect_types is on, this list will be replaced with another one before row_cast_map is used, if detect_types is off, row_cast_map is not used at all.
* Remove some unused code in _pysqlite_query_execute() (GH-8495)Sergey Fedoseev2018-07-271-6/+0
| | | Unused since commit ab994ed8b97e1b0dac151ec827c857f5e7277565.
* prefix internal sqlite symbols with _pysqlite_ (GH-8215)Benjamin Peterson2018-07-091-2/+2
|
* bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor ↵Oren Milman2017-11-061-0/+5
| | | | object is uninitialized (#3958)
* bpo-31770: Prevent a crash and refleaks when calling ↵Oren Milman2017-11-061-8/+7
| | | | sqlite3.Cursor.__init__() more than once (#3968)
* closes bpo-31525: require sqlite3_prepare_v2 (#3666)Benjamin Peterson2017-09-201-63/+34
| | | | | This is based on https://github.com/ghaering/pysqlite/commit/40b349cadbd87c42f70fc92e5e1aee6d02564c6d#diff-0489411409cd2934730e88bf7767790, though we can be a bit more aggressive about deleting code.
* bpo-9303: Migrate sqlite3 module to _v2 API to enhance performance (#359)Aviv Palivoda2017-03-031-1/+3
|
* bpo-28518: Start a transaction implicitly before a DML statement (#245)Berker Peksag2017-02-261-5/+4
| | | Patch by Aviv Palivoda.
* Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSizeSerhiy Storchaka2016-11-201-2/+2
| | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
* Issue #28037: Use sqlite3_get_autocommit() instead of setting ↵Berker Peksag2016-09-121-9/+0
| | | | | | Connection->inTransaction manually Patch adapted from https://github.com/ghaering/pysqlite/commit/9b79188edbc50faa24dc178afe24a10454f3fcad
* Issue #10740: sqlite3 no longer implicitly commit an open transaction before ↵Berker Peksag2016-09-111-99/+26
| | | | | | | | | | | | | | | | | | DDL statements This commit contains the following commits from ghaering/pysqlite: * https://github.com/ghaering/pysqlite/commit/f254c534948c41c0ceb8cbabf0d4a2f547754739 * https://github.com/ghaering/pysqlite/commit/796b3afe38cfdac5d7d5ec260826b0a596554631 * https://github.com/ghaering/pysqlite/commit/cae87ee68613697a5f4947b4a0941f59a28da1b6 * https://github.com/ghaering/pysqlite/commit/3567b31bb5e5b226ba006213a9c69dde3f155faf With the following additions: * Fixed a refcount error * Fixed a compiler warning * Made the string comparison a little more robust * Added a whatsnew entry
* Avoid calling functions with an empty string as format stringVictor Stinner2016-09-051-1/+1
| | | | Directly pass NULL rather than an empty string.
* Issue #21718: Merge from 3.5Berker Peksag2016-08-211-6/+5
|\
| * Issue #21718: cursor.description is now available for queries using CTEsBerker Peksag2016-08-211-6/+5
| | | | | | | | | | | | | | | | | | | | According to PEP 249, cursor.description must be available for any SELECT statements, such as those that use CTEs. Backported from https://github.com/ghaering/pysqlite/commit/f67fa9c898a4713850e16934046f0fe2cba8c44c Additional test cases added by me.
* | Issue #16864: Cursor.lastrowid now supports REPLACE statementBerker Peksag2016-06-141-1/+3
| | | | | | | | Initial patch by Alex LordThorsen.
* | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka2016-04-101-3/+3
|\ \ | |/ | | | | in places where Py_DECREF was used.
| * Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka2016-04-101-3/+3
| | | | | | | | in places where Py_DECREF was used.
* | Issue #26687: Use Py_RETURN_NONE macro in sqlite3 moduleBerker Peksag2016-04-091-8/+4
| |
* | Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-5/+5
|\ \ | |/
| * Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-5/+5
| |
* | Issue #20440: More use of Py_SETREF.Serhiy Storchaka2015-12-271-2/+2
|\ \ | |/ | | | | | | This patch is manually crafted and contains changes that couldn't be handled automatically.
| * Issue #20440: More use of Py_SETREF.Serhiy Storchaka2015-12-271-2/+2
| | | | | | | | | | This patch is manually crafted and contains changes that couldn't be handled automatically.
* | Issue #25923: Added the const qualifier to static constant arrays.Serhiy Storchaka2015-12-251-2/+2
|/
* Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka2015-12-241-8/+5
| | | | macro Py_SETREF.
* 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 #22218: Fix "comparison between signed and unsigned integers" warning inVictor Stinner2014-08-171-1/+1
| | | | Modules/_sqlite/cursor.c.
* Issue #21858: Better handling of Python exceptions in the sqlite3 module.Victor Stinner2014-06-261-16/+26
|
* 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
| |
* | 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_cursor_iternext() of sqlite3, handleVictor Stinner2013-11-051-0/+6
| | | | | | | | _pysqlite_fetch_one_row() failure
* | Issue #18701: Remove support of old CPython versions (<3.0) from C code.Serhiy Storchaka2013-08-171-1/+0
| |
* | Issue #18408: Fix _pysqlite_fetch_one_row(), in debug mode, don't callVictor Stinner2013-07-181-0/+5
|/ | | | type_call() with an exception set
* Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3,Serhiy Storchaka2013-04-281-1/+1
| | | | such as was shipped with Centos 5 and Mac OS X 10.4.
* Issue #17073: Fix some integer overflows in sqlite3 module.Serhiy Storchaka2013-02-071-17/+3
|\
| * Issue #17073: Fix some integer overflows in sqlite3 module.Serhiy Storchaka2013-02-071-17/+3
| |
| * Issue #10811: Fix recursive usage of cursors. Instead of crashing, raise a ↵Petri Lehtinen2012-02-061-10/+19
| | | | | | | | ProgrammingError now.
* | Undocument and clean up sqlite3.OptimizedUnicodePetri Lehtinen2012-02-091-17/+3
| | | | | | | | Closes #13921.