Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-10572: Move `sqlite3` tests to `Lib/test` (GH-29304) | Erlend Egeberg Aasland | 2021-10-29 | 10 | -3895/+0 |
| | | | Automerge-Triggered-By: GH:brettcannon | ||||
* | bpo-16379: Fix SQLite version checks in test_module_constants() (GH-28809) | Erlend Egeberg Aasland | 2021-10-07 | 1 | -2/+2 |
| | | | Automerge-Triggered-By: GH:pablogsal | ||||
* | bpo-45041: Restore `sqlite3` executescript behaviour for `SELECT` queries ↵ | Erlend Egeberg Aasland | 2021-10-07 | 1 | -0/+11 |
| | | | | | | | (GH-28509) * bpo-45041: Restore sqlite3 executescript behaviour for select queries * Add regression test | ||||
* | Fix typos in the Lib directory (GH-28775) | Christian Clauss | 2021-10-06 | 1 | -1/+1 |
| | | | | | Fix typos in the Lib directory as identified by codespell. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> | ||||
* | bpo-44958: Fix ref. leak introduced in GH-27844 (GH-28490) | Erlend Egeberg Aasland | 2021-09-21 | 2 | -30/+36 |
| | | | | | | Modify managed_connect() helper to support in-memory databases. Use it for the regression tests added in GH-27844. Automerge-Triggered-By: GH:pablogsal | ||||
* | bpo-44958: Only reset `sqlite3` statements when needed (GH-27844) | Erlend Egeberg Aasland | 2021-09-21 | 1 | -7/+42 |
| | |||||
* | Fix typo in Lib/sqlite3/test/test_types.py (GH-28226) | Konstantin Popov | 2021-09-15 | 1 | -1/+1 |
| | | | | | preceeding -> preceding Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | bpo-45181: Simplify loading sqlite3 tests (GH-28304) | Serhiy Storchaka | 2021-09-13 | 9 | -135/+9 |
| | | | | | Use unittest discover instead of manually enumerating all test modules and classes. Also add support for filtering them by pattern. | ||||
* | bpo-45041: Increase coverage for sqlite3.Cursor.executescript() (GH-28074) | Erlend Egeberg Aasland | 2021-08-30 | 1 | -0/+7 |
| | |||||
* | bpo-16379: expose SQLite error codes and error names in `sqlite3` (GH-27786) | Erlend Egeberg Aasland | 2021-08-30 | 1 | -2/+85 |
| | |||||
* | bpo-43398: Add test for defect connection factories (GH-27966) | Erlend Egeberg Aasland | 2021-08-30 | 1 | -10/+12 |
| | |||||
* | bpo-25130: Make SQLite tests more compatible with PyPy (GH-28021) | Serhiy Storchaka | 2021-08-29 | 2 | -2/+5 |
| | |||||
* | bpo-27334: roll back transaction if sqlite3 context manager fails to commit ↵ | Erlend Egeberg Aasland | 2021-08-25 | 1 | -1/+79 |
| | | | | | | (GH-26202) Co-authored-by: Luca Citi Co-authored-by: Berker Peksag <berker.peksag@gmail.com> | ||||
* | bpo-44859: Improve error handling in sqlite3 and and raise more accurate ↵ | Serhiy Storchaka | 2021-08-08 | 5 | -19/+166 |
| | | | | | | | | | | | | | | | | | | | | exceptions. (GH-27654) * MemoryError is now raised instead of sqlite3.Warning when memory is not enough for encoding a statement to UTF-8 in Connection.__call__() and Cursor.execute(). * UnicodEncodeError is now raised instead of sqlite3.Warning when the statement contains surrogate characters in Connection.__call__() and Cursor.execute(). * TypeError is now raised instead of ValueError for non-string script argument in Cursor.executescript(). * ValueError is now raised for script containing the null character instead of truncating it in Cursor.executescript(). * Correctly handle exceptions raised when getting boolean value of the result of the progress handler. * Add many tests covering different corner cases. Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> | ||||
* | bpo-44839: Raise more specific errors in sqlite3 (GH-27613) | Serhiy Storchaka | 2021-08-06 | 1 | -1/+44 |
| | | | | | | MemoryError raised in user-defined functions will now preserve its type. OverflowError will now be converted to DataError. Previously both were converted to OperationalError. | ||||
* | bpo-44822: Don't truncate `str`s with embedded NULL chars returned by ↵ | Erlend Egeberg Aasland | 2021-08-05 | 1 | -0/+28 |
| | | | | `sqlite3` UDF callbacks (GH-27588) | ||||
* | bpo-31746: Prevent segfaults when sqlite3.Connection is uninitialised (GH-27431) | Erlend Egeberg Aasland | 2021-07-29 | 1 | -0/+21 |
| | |||||
* | bpo-44688: Remove ASCII limitation from `sqlite3` collation names (GH-27395) | Erlend Egeberg Aasland | 2021-07-29 | 2 | -3/+2 |
| | |||||
* | bpo-44491: Allow clearing the sqlite3 authoriser callback (GH-26863) | Erlend Egeberg Aasland | 2021-06-24 | 2 | -0/+7 |
| | |||||
* | bpo-43553: Improve `sqlite3` test coverage (GH-26886) | Erlend Egeberg Aasland | 2021-06-24 | 4 | -2/+100 |
| | |||||
* | bpo-42064: Move `sqlite3` exceptions to global state, part 1 of 2 (GH-26745) | Erlend Egeberg Aasland | 2021-06-23 | 1 | -0/+18 |
| | | | Also adds a test to verify the (borrowed) exceptions in `sqlite3.Connection`. | ||||
* | bpo-44430: Refactor `sqlite3` threading tests (GH-26748) | Erlend Egeberg Aasland | 2021-06-20 | 1 | -140/+36 |
| | | | | | | | 1. Rewrite ThreadTests with a _run_test() helper method that does the heavy lifting 2. Add test.support.threading_helper.reap_threads to _run_test() 3. Use _run_test() in all threading tests 4. Add test case for sqlite3.Connection.set_trace_callback 5. Add test case for sqlite3.Connection.create_collation | ||||
* | bpo-44087: Disallow instantiation of sqlite3.Statement (GH-26567) | Erlend Egeberg Aasland | 2021-06-20 | 1 | -0/+5 |
| | |||||
* | bpo-40956: Convert sqlite3.connect and sqlite3.Connection.__init__ to AC ↵ | Erlend Egeberg Aasland | 2021-06-20 | 1 | -0/+21 |
| | | | | (GH-24421) | ||||
* | bpo-44304: Fix crash in the sqlite3 module when the GC clears Statement ↵ | Pablo Galindo | 2021-06-05 | 1 | -0/+17 |
| | | | | objects (GH-26545) | ||||
* | bpo-43853: Handle sqlite3_value_text() errors (GH-25422) | Erlend Egeberg Aasland | 2021-06-04 | 1 | -5/+7 |
| | |||||
* | bpo-44041: Add test for sqlite3 column count (GH-25907) | Erlend Egeberg Aasland | 2021-06-04 | 1 | -0/+11 |
| | |||||
* | bpo-42213: Remove redundant cyclic GC hack in sqlite3 (GH-26517) | Erlend Egeberg Aasland | 2021-06-03 | 2 | -18/+35 |
| | | | | | | | | | | The sqlite3 module now fully implements the GC protocol, so there's no need for this workaround anymore. - Add and use managed resource helper for connections using TESTFN - Sort test imports - Split open-tests into their own test case Automerge-Triggered-By: GH:vstinner | ||||
* | bpo-42213: Check connection in sqlite3.Connection.__enter__ (GH-26512) | Erlend Egeberg Aasland | 2021-06-03 | 1 | -0/+20 |
| | | | | | | | | | Try to harden connection close: - add tests that exercise stuff against a closed database - add wrapper for sqlite3_close_v2() - check connection on __enter__ - explicitly free pending statements before close() - sqlite3_close_v2() always returns SQLITE_OK | ||||
* | sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032) | Erlend Egeberg Aasland | 2021-05-14 | 1 | -1/+1 |
| | |||||
* | bpo-43296: Handle sqlite3_value_blob() errors (GH-24674) | Erlend Egeberg Aasland | 2021-04-14 | 1 | -0/+4 |
| | |||||
* | bpo-43265: Improve sqlite3.Connection.backup error handling (GH-24586) | Erlend Egeberg Aasland | 2021-04-14 | 1 | -4/+1 |
| | |||||
* | bpo-43752: Fix sqlite3 regression for zero-sized blobs with converters ↵ | Erlend Egeberg Aasland | 2021-04-14 | 1 | -1/+3 |
| | | | | (GH-25228) | ||||
* | bpo-43369: sqlite3_column_{text,blob} failures now raise MemoryError (GH-24723) | Erlend Egeberg Aasland | 2021-03-04 | 1 | -1/+22 |
| | |||||
* | bpo-43368: Fix fetching empty bytes in sqlite3 (GH-24706) | Mariusz Felisiak | 2021-03-03 | 1 | -0/+4 |
| | | | Regression introduced in 47feb1feb28631b6647699b7633109aa85340966. | ||||
* | bpo-43258: Don't allocate sqlite3 aggregate context for empty queries (GH-24569) | Erlend Egeberg Aasland | 2021-02-19 | 1 | -0/+5 |
| | |||||
* | bpo-40956: Fix segfault when Connection.backup is called without target ↵ | Erlend Egeberg Aasland | 2021-02-10 | 1 | -1/+3 |
| | | | | (GH-24503) | ||||
* | bpo-24464: Fix sqlite3.enable_shared_cache() deprecation wrapper (GH-24170) | Erlend Egeberg Aasland | 2021-01-09 | 1 | -0/+4 |
| | |||||
* | bpo-42847: Normalise Lib/sqlite3/test/* file encodings (GH-24147) | Erlend Egeberg Aasland | 2021-01-07 | 6 | -21/+15 |
| | | | Convert from ISO-8859-1 to UTF-8. | ||||
* | bpo-40823: Use loadTestsFromTestCase() iso. makeSuite() in sqlite3 tests ↵ | Erlend Egeberg Aasland | 2021-01-07 | 9 | -320/+343 |
| | | | | (GH-20538) | ||||
* | bpo-24464: Deprecate sqlite3.enable_shared_cache (GH-24008) | Erlend Egeberg Aasland | 2021-01-06 | 1 | -0/+7 |
| | |||||
* | bpo-40810: Require SQLite 3.7.15 (GH-24106) | Erlend Egeberg Aasland | 2021-01-06 | 2 | -12/+0 |
| | |||||
* | bpo-40810: Fix CheckTraceCallbackContent for SQLite pre 3.7.15 (GH-20530) | Erlend Egeberg Aasland | 2021-01-04 | 1 | -0/+8 |
| | | | | Ref. [SQLite 3.7.15 changelog](https://sqlite.org/changes.html#version_3_7_15): _"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."_ | ||||
* | bpo-42264: Deprecate sqlite3.OptimizedUnicode (GH-23163) | Erlend Egeberg Aasland | 2020-11-17 | 1 | -3/+4 |
| | |||||
* | bpo-41815: SQLite: segfault if backup called on closed database (GH-22322) | Peter McCormick | 2020-09-20 | 1 | -0/+7 |
| | | | | | | | | | | | | | # [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) ``` | ||||
* | bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998) | Serhiy Storchaka | 2020-09-17 | 2 | -1/+26 |
| | | | | | | | * 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__()``. | ||||
* | bpo-40744: Drop support for SQLite pre 3.7.3 (GH-20909) | Erlend Egeberg Aasland | 2020-09-07 | 6 | -20/+0 |
| | | | | | | Remove code required to support SQLite pre 3.7.3. Co-written-by: Berker Peksag <berker.peksag@gmail.com> Co-written-by: Sergey Fedoseev <fedoseev.sergey@gmail.com> | ||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21772) | Hai Shi | 2020-08-07 | 1 | -1/+1 |
| | |||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21764) | Hai Shi | 2020-08-07 | 1 | -1/+2 |
| | |||||
* | bpo-40784: Fix sqlite3 deterministic test (GH-20448) | Erlend Egeberg Aasland | 2020-05-28 | 1 | -9/+27 |
| |