Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | closes bpo-31525: require sqlite3_prepare_v2 (#3666) | Benjamin Peterson | 2017-09-20 | 1 | -3/+3 |
| | | | | | 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-31370: Remove support for threads-less builds (#3385) | Antoine Pitrou | 2017-09-07 | 1 | -37/+0 |
| | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. | ||||
* | bpo-30592: Fixed error messages for some builtins. (#1996) | Serhiy Storchaka | 2017-06-08 | 1 | -1/+1 |
| | | | | | Error messages when pass keyword arguments to some builtins that don't support keyword arguments contained double parenthesis: "()()". The regression was introduced by bpo-30534. | ||||
* | Use NULL rather than 0. (#778) | Serhiy Storchaka | 2017-03-23 | 1 | -1/+1 |
| | | | | | There was few cases of using literal 0 instead of NULL in the context of pointers. While this was a legitimate C code, using NULL rather than 0 makes the code clearer. | ||||
* | bpo-6532: Make the thread id an unsigned integer. (#781) | Serhiy Storchaka | 2017-03-23 | 1 | -1/+1 |
| | | | | | | | | | | | * bpo-6532: Make the thread id an unsigned integer. From C API side the type of results of PyThread_start_new_thread() and PyThread_get_thread_ident(), the id parameter of PyThreadState_SetAsyncExc(), and the thread_id field of PyThreadState changed from "long" to "unsigned long". * Restore a check in thread_get_ident(). | ||||
* | bpo-9303: Migrate sqlite3 module to _v2 API to enhance performance (#359) | Aviv Palivoda | 2017-03-03 | 1 | -5/+7 |
| | |||||
* | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever | Serhiy Storchaka | 2017-01-23 | 1 | -6/+3 |
| | | | | possible. Patch is writen with Coccinelle. | ||||
* | Issue #28915: Use _PyObject_CallNoArg() | Victor Stinner | 2016-12-09 | 1 | -2/+2 |
| | | | | Replace PyObject_CallFunction(func, NULL) with _PyObject_CallNoArg(func). | ||||
* | Added the const qualifier to char* variables that refer to readonly internal | Serhiy Storchaka | 2016-11-20 | 1 | -1/+1 |
| | | | | UTF-8 represenatation of Unicode objects. | ||||
* | Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize | Serhiy Storchaka | 2016-11-20 | 1 | -2/+2 |
| | | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize. | ||||
* | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 1 | -1/+1 |
|\ | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions. | ||||
| * | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 1 | -1/+1 |
| | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions. | ||||
* | | Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation() | Serhiy Storchaka | 2016-09-26 | 1 | -2/+4 |
|\ \ | |/ | | | | | if pass invalid string-like object as a name. Patch by Xiang Zhang. | ||||
| * | Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation() | Serhiy Storchaka | 2016-09-26 | 1 | -2/+4 |
| | | | | | | | | if pass invalid string-like object as a name. Patch by Xiang Zhang. | ||||
* | | Issue #28037: Use sqlite3_get_autocommit() instead of setting ↵ | Berker Peksag | 2016-09-12 | 1 | -14/+17 |
| | | | | | | | | | | | | Connection->inTransaction manually Patch adapted from https://github.com/ghaering/pysqlite/commit/9b79188edbc50faa24dc178afe24a10454f3fcad | ||||
* | | Issue #28036: Remove unused pysqlite_flush_statement_cache function | Berker Peksag | 2016-09-11 | 1 | -20/+0 |
| | | |||||
* | | Avoid calling functions with an empty string as format string | Victor Stinner | 2016-09-06 | 1 | -8/+8 |
| | | | | | | | | Directly pass NULL rather than an empty string. | ||||
* | | Issue #27881: Fixed possible bugs when setting ↵ | Serhiy Storchaka | 2016-09-01 | 1 | -39/+33 |
|\ \ | |/ | | | | | | | | | sqlite3.Connection.isolation_level. Based on patch by Xiang Zhang. | ||||
| * | Issue #27881: Fixed possible bugs when setting ↵ | Serhiy Storchaka | 2016-09-01 | 1 | -39/+33 |
| | | | | | | | | | | | | sqlite3.Connection.isolation_level. Based on patch by Xiang Zhang. | ||||
* | | Issue #27861: Fixed a crash in sqlite3.Connection.cursor() when a factory | Serhiy Storchaka | 2016-08-29 | 1 | -2/+11 |
|\ \ | |/ | | | | | creates not a cursor. Patch by Xiang Zhang. | ||||
| * | Issue #27861: Fixed a crash in sqlite3.Connection.cursor() when a factory | Serhiy Storchaka | 2016-08-29 | 1 | -2/+11 |
| | | | | | | | | creates not a cursor. Patch by Xiang Zhang. | ||||
* | | Issue #10513: Merge from 3.5 | Berker Peksag | 2016-08-26 | 1 | -1/+0 |
|\ \ | |/ | |||||
| * | Issue #10513: Fix a regression in Connection.commit() | Berker Peksag | 2016-08-26 | 1 | -1/+0 |
| | | | | | | | | | | | | Statements should not be reset after a commit. Backported from https://github.com/ghaering/pysqlite/commit/029050896b1e6058573abeef5a8970384c0c7faa | ||||
* | | Issue #27190: Merge from 3.5 | Berker Peksag | 2016-06-12 | 1 | -0/+4 |
|\ \ | |/ | |||||
| * | Issue #27190: Raise NotSupportedError if sqlite3 is older than 3.3.1 | Berker Peksag | 2016-06-12 | 1 | -0/+4 |
| | | | | | | | | Patch by Dave Sawyer. | ||||
* | | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF | Serhiy Storchaka | 2016-04-10 | 1 | -3/+3 |
|\ \ | |/ | | | | | in places where Py_DECREF was used. | ||||
| * | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF | Serhiy Storchaka | 2016-04-10 | 1 | -3/+3 |
| | | | | | | | | in places where Py_DECREF was used. | ||||
* | | Issue #26687: Use Py_RETURN_NONE macro in sqlite3 module | Berker Peksag | 2016-04-09 | 1 | -16/+8 |
| | | |||||
* | | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -4/+4 |
|\ \ | |/ | |||||
| * | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -4/+4 |
| | | |||||
* | | Issue #25923: Added the const qualifier to static constant arrays. | Serhiy Storchaka | 2015-12-25 | 1 | -1/+1 |
|/ | |||||
* | Issue #20440: Massive replacing unsafe attribute setting code with special | Serhiy Storchaka | 2015-12-24 | 1 | -8/+5 |
| | | | | macro Py_SETREF. | ||||
* | Issue #20274: When calling a _sqlite.Connection, it now complains if passed | Larry Hastings | 2015-05-08 | 1 | -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 three | Larry Hastings | 2015-05-08 | 1 | -3/+3 |
|/ | | | | METH_VARARGS methods on _sqlite.Connection. | ||||
* | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() | Serhiy Storchaka | 2015-02-02 | 1 | -5/+6 |
| | | | | and PyObject_AsWriteBuffer(). | ||||
* | Issue #21147: sqlite3 now raises an exception if the request contains a null | Serhiy Storchaka | 2014-09-11 | 1 | -1/+2 |
| | | | | character instead of truncate it. Based on patch by Victor Stinner. | ||||
* | (Merge 3.3) Issue #20026: Fix the sqlite module to handle correctly invalid | Victor Stinner | 2013-12-19 | 1 | -1/+4 |
|\ | | | | | | | isolation level (wrong type). | ||||
| * | Issue #20026: Fix the sqlite module to handle correctly invalid isolation level | Victor Stinner | 2013-12-19 | 1 | -1/+4 |
| | | | | | | | | (wrong type). | ||||
* | | sqlite: raise an OverflowError if the result is longer than INT_MAX bytes | Victor Stinner | 2013-11-18 | 1 | -2/+8 |
| | | | | | | | | Fix a compiler warning on Windows 64-bit | ||||
* | | Issue #19514: Deduplicate some _Py_IDENTIFIER declarations. | Martin v. Löwis | 2013-11-07 | 1 | -3/+2 |
| | | | | | | | | Patch by Andrei Dorian Duma. | ||||
* | | Issue #19437: Fix pysqlite_connection_call() of sqlite3, return NULL when | Victor Stinner | 2013-11-05 | 1 | -17/+13 |
| | | | | | | | | PyList_Append() fails | ||||
* | | (Merge 3.3) Fix compilation of the _sqlite module if threads are disabled | Victor Stinner | 2013-08-27 | 1 | -0/+3 |
|\ \ | |/ | |||||
| * | Fix compilation of the _sqlite module if threads are disabled | Victor Stinner | 2013-08-27 | 1 | -0/+3 |
| | | |||||
* | | Issue #18701: Remove support of old CPython versions (<3.0) from C code. | Serhiy Storchaka | 2013-08-16 | 1 | -1/+0 |
| | | |||||
* | | Issue #18519: Fix test_sqlite on old versions of libsqlite3 | Victor Stinner | 2013-08-01 | 1 | -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 Stinner | 2013-07-26 | 1 | -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 Stinner | 2013-07-22 | 1 | -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 callback | Victor Stinner | 2013-07-21 | 1 | -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 #18488: _pysqlite_final_callback() should not clear the exception set by | Victor Stinner | 2013-07-17 | 1 | -0/+9 |
| | | | | | | | | the last call to the step() method of a user function | ||||
* | | Issue #13773: sqlite3.connect() gets a new `uri` parameter to pass the ↵ | Antoine Pitrou | 2013-02-09 | 1 | -3/+21 |
|/ | | | | filename as a URI, allowing to pass custom options. |