| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Ref. [SQLite 3.7.15 changelog](https://sqlite.org/changes.htmlGH-version_3_7_15):
_"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."_
(cherry picked from commit f7f0ed59bcc41ed20674d4b2aa443d3b79e725f4)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
|
|
|
|
|
|
|
|
|
| |
* When the parameters argument is a list, correctly handle the case
of changing it during iteration.
* When the parameters argument is a custom sequence, no longer
override an exception raised in ``__len__()``.
(cherry picked from commit 0b419b791077414bbc011a412698ebb362b63761)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GH- [bpo-41815](): SQLite: fix segfault if backup called on closed database
Attempting to backup a closed database will trigger segfault:
```python
import sqlite3
target = sqlite3.connect(':memory:')
source = sqlite3.connect(':memory:')
source.close()
source.backup(target)
```
(cherry picked from commit bfee9fad84531a471fd7864e88947320669f68e2)
Co-authored-by: Peter McCormick <peter@pdmccormick.com>
|
|
|
|
|
| |
(cherry picked from commit c610d970f5373b143bf5f5900d4645e6a90fb460)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
|
|
|
|
|
|
|
| |
(GH-18942)
(cherry picked from commit b146568dfcbcd7409c724f8917e4f77433dd56e4)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
| |
(GH-16190)
(cherry picked from commit f669581a9527afb0d2325f9845a86715c0ba365d)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 8debfa50407107ff2329d01081cdc12d359f1d12)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit b9a0376b0dedf16a2f82fa43d851119d1f7a2707)
Co-authored-by: gescheit <gescheit@yandex-team.ru>
|
|
|
|
| |
(GH-11175)
|
|
|
| |
Propagate unexpected errors (like MemoryError and KeyboardInterrupt) to user.
|
|
|
|
| |
(GH-8113)
|
|
|
|
| |
Connection.create_function() (GH-8086)
|
| |
|
|
|
| |
It was actually fixed in SQLite 3.8.8, not 3.8.7.
|
| |
|
| |
|
|
|
| |
It looks like this was copied from one of the previous tests, which did use it.
|
|
|
|
| |
(#4299)
|
|
|
|
| |
object is uninitialized (#3958)
|
|
|
|
| |
sqlite3.Cursor.__init__() more than once (#3968)
|
|
|
|
|
|
| |
* Remove Setup.config
* Always define WITH_THREAD for compatibility.
|
|
|
|
|
|
| |
conn.set_trace_callback() shouldn't be called multiple times when the
schema is changing.
This has indirectly been fixed by using sqlite3_prepare_v2() in bpo-9303.
|
|
|
| |
Patch by Aviv Palivoda.
|
|\ |
|
| | |
|
|\ \
| |/
| |
| | |
if pass invalid string-like object as a name. Patch by Xiang Zhang.
|
| |
| |
| |
| | |
if pass invalid string-like object as a name. Patch by Xiang Zhang.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Initial patch by Alex LordThorsen.
|
|\ \
| |/
| |
| |
| |
| | |
sqlite3.Connection.isolation_level.
Based on patch by Xiang Zhang.
|
| |
| |
| |
| |
| |
| | |
sqlite3.Connection.isolation_level.
Based on patch by Xiang Zhang.
|
|\ \
| |/
| |
| | |
creates not a cursor. Patch by Xiang Zhang.
|
| |
| |
| |
| | |
creates not a cursor. Patch by Xiang Zhang.
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| | |
Statements should not be reset after a commit.
Backported from https://github.com/ghaering/pysqlite/commit/029050896b1e6058573abeef5a8970384c0c7faa
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
| |
Initial patch by Alex LordThorsen.
|
| |
|
|
|
|
|
| |
They are not used as base classes by another tests so they
can safely be removed.
|
| |
|
|
|
|
|
| |
Update current tests that use old pattern with assertRaises
to make them more maintainable.
|
|
|
|
| |
Patch by Dave Sawyer.
|
|
|
|
|
|
|
|
|
|
|
| |
* Connection.execute* methods don't create intermediate cursor objects
* Fix description of seq_of_parameters parameter
* Clarify that Warning is sqlite3.Warning
* sql_script parameter of Cursor.executescript() doesn't accept bytes
* Add missing tests
* Fix various markup errors
Initial patch by Dave Sawyer.
|
| |
|
|
|
|
|
|
|
|
| |
If you pass -1, the callable can take any number of arguments.
Added tests to verify the behavior.
Initial patch by Cédric Krier.
|
|\
| |
| |
| |
| | |
Fixed segmentation fault in sqlite3.Row constructor with faked cursor type.
Fixed system error in the comparison of faked types.SimpleNamespace.
|
| |
| |
| |
| |
| | |
Fixed segmentation fault in sqlite3.Row constructor with faked cursor type.
Fixed system error in the comparison of faked types.SimpleNamespace.
|
|/
|
|
| |
Tests by Jessica McKellar.
|