summaryrefslogtreecommitdiffstats
path: root/Lib/sqlite3
Commit message (Collapse)AuthorAgeFilesLines
* gh-100553: Improve accuracy of sqlite3.Row iter test (GH-100555)Miss Islington (bot)2022-12-281-2/+8
| | | | | (cherry picked from commit 3dc48dabd48864039951715816e07986a4828d80) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.10] gh-79009: sqlite3.iterdump now correctly handles tables with ↵Miss Islington (bot)2022-06-202-1/+59
| | | | | | | | autoincrement (GH-9621) (#94015) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> (cherry picked from commit affa9f22cfd1e83a5fb413e5ce2feef9ea1a49ac) Co-authored-by: itssme <itssme3000@gmail.com>
* [3.10] gh-93795: Use test.support TESTFN/unlink in sqlite3 tests (GH-93796). ↵Erlend Egeberg Aasland2022-06-141-17/+15
| | | | (#93809)
* [3.10] gh-93421: Update sqlite3 cursor.rowcount only after SQLITE_DONE ↵Erlend Egeberg Aasland2022-06-081-0/+8
| | | | | (GH-93526) (GH-93599) (cherry picked from commit 875de61)
* [3.10] gh-80254: Disallow recursive usage of cursors in `sqlite3` converters ↵Erlend Egeberg Aasland2022-05-051-1/+41
| | | | | | | | | | | | (#92274) * [3.10] gh-80254: Disallow recursive usage of cursors in `sqlite3` converters (#29054) (cherry picked from commit f629dcfe835e349433e4c5099381d668e8fe69c8) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> * Fix ref leak in pysqlite_cursor_iternext
* [3.10] gh-89301: Fix regression with bound values in traced SQLite ↵Erlend Egeberg Aasland2022-05-021-0/+26
| | | | | statements (#92147) (cherry picked from commit 721aa96540bb96700f8c4bab0b4095b43491dca1)
* Fix typo in the sqlite3 docs (GH-31915) (GH-32157)Miss Islington (bot)2022-03-291-1/+1
| | | | | | | Co-authored-by: Jonathan <89750679+AHypnotoad@users.noreply.github.com> (cherry picked from commit 66584c890d016e40d707400130d1cd98f2aedde9) Co-authored-by: Jonathan <jonathan.joyner94@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.10] bpo-43853: Expand test suite for SQLite UDF's (GH-27642) (GH-31030)Erlend Egeberg Aasland2022-02-211-63/+65
| | | | | | | | | | | * [3.10] bpo-43853: Expand test suite for SQLite UDF's (GH-27642). (cherry picked from commit 3eb3b4f270757f66c7fb6dcf5afa416ee1582a4b) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> * Fix test_func_return_too_large_int GH-27613 (bpo 44839) was not backported, so exceptions differ between main (3.11) and older versions.
* bpo-45677: Reword first section of `sqlite3` docs (GH-29326) (GH-29566)Miss Islington (bot)2021-11-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-45677: Avoid addressing the reader as 'you' in sqlite3 docs * Adjust wording * Adjust wording again * Typo * Update Doc/library/sqlite3.rst Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> * Address review: adjust wording * Update Doc/library/sqlite3.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Lib/sqlite3/__init__.py Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Doc/library/sqlite3.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Doc/library/sqlite3.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Lib/sqlite3/__init__.py Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Doc/library/sqlite3.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Apply Alex' suggestion, and apply 80 char limit to PR * Minor adjustment Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit 6c5a312fb6d92e879bf4c570b94e18bb9ffe5970) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-45612: Add sqlite3 module docstring (GH-29224) (GH-29288)Miss Islington (bot)2021-10-281-0/+34
| | | | | (cherry picked from commit 4dd1e84789f0bd2da83ad06d23c569bf03713a50) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* [3.10] Fix typos in the Lib directory (GH-28775) (GH-28804)Christian Clauss2021-10-071-1/+1
| | | | | | | | Fix typos in the Lib directory as identified by codespell. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>. (cherry picked from commit 745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be) Co-authored-by: Christian Clauss <cclauss@me.com>
* bpo-25130: Make SQLite tests more compatible with PyPy (GH-28021)Miss Islington (bot)2021-08-292-2/+5
| | | | | (cherry picked from commit 07d3d54f4e84b1259b800884b202701f69e408d8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-27334: roll back transaction if sqlite3 context manager fails to ↵Erlend Egeberg Aasland2021-08-281-1/+74
| | | | commit (GH-26202) (GH-27943)
* bpo-44822: Don't truncate `str`s with embedded NULL chars returned by ↵Miss Islington (bot)2021-08-061-0/+28
| | | | | | | `sqlite3` UDF callbacks (GH-27588) (cherry picked from commit 8f010dc920e1f6dc6a357e7cc1460a7a567c05c6) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* [3.10] bpo-31746: Prevent segfaults when sqlite3.Connection is uninitialised ↵Erlend Egeberg Aasland2021-07-301-0/+21
| | | | | | | (GH-27431). (GH-27472) (cherry picked from commit 7e311e496b0e26b3d3c62fe9b0ed2a4677c37ee9) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* [3.10] bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757) ↵Erlend Egeberg Aasland2021-06-231-2/+2
| | | | | | | | | (GH-26885) (cherry picked from commit 4f725261c6cf23d259e8fdc205e12b76ef4d2d31, fbff5387c3e1f3904420fa5a27738c6c5881305b, and 8cec740820fc875117bfa7b6bdb10202ebeb8fd5) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Automerge-Triggered-By: GH:vstinner
* [3.10] bpo-44087: Disallow instantiation of sqlite3.Statement (GH-26567) ↵Erlend Egeberg Aasland2021-06-201-0/+5
| | | | | (GH-26816) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-44304: Fix crash in the sqlite3 module when the GC clears Statement ↵Miss Islington (bot)2021-06-051-0/+17
| | | | | | | objects (GH-26545) (cherry picked from commit fa106a685c1f199aca5be5c2d0277a14cc9057bd) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-43853: Handle sqlite3_value_text() errors (GH-25422)Miss Islington (bot)2021-06-041-5/+7
| | | | | (cherry picked from commit 006fd869e4798b68e266f5de89c83ddb531a756b) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-44108: sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032) (GH-26125)Miss Islington (bot)2021-05-141-1/+1
| | | | | | | (cherry picked from commit be7e467bcf5e419302d887904ef3e8fd310c68e7) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-43296: Handle sqlite3_value_blob() errors (GH-24674)Erlend Egeberg Aasland2021-04-141-0/+4
|
* bpo-43265: Improve sqlite3.Connection.backup error handling (GH-24586)Erlend Egeberg Aasland2021-04-141-4/+1
|
* bpo-43752: Fix sqlite3 regression for zero-sized blobs with converters ↵Erlend Egeberg Aasland2021-04-141-1/+3
| | | | (GH-25228)
* bpo-43369: sqlite3_column_{text,blob} failures now raise MemoryError (GH-24723)Erlend Egeberg Aasland2021-03-041-1/+22
|
* bpo-43368: Fix fetching empty bytes in sqlite3 (GH-24706)Mariusz Felisiak2021-03-031-0/+4
| | | Regression introduced in 47feb1feb28631b6647699b7633109aa85340966.
* bpo-43258: Don't allocate sqlite3 aggregate context for empty queries (GH-24569)Erlend Egeberg Aasland2021-02-191-0/+5
|
* bpo-40956: Fix segfault when Connection.backup is called without target ↵Erlend Egeberg Aasland2021-02-101-1/+3
| | | | (GH-24503)
* bpo-24464: Fix sqlite3.enable_shared_cache() deprecation wrapper (GH-24170)Erlend Egeberg Aasland2021-01-092-1/+5
|
* bpo-42847: Normalise Lib/sqlite3/test/* file encodings (GH-24147)Erlend Egeberg Aasland2021-01-076-21/+15
| | | Convert from ISO-8859-1 to UTF-8.
* bpo-40823: Use loadTestsFromTestCase() iso. makeSuite() in sqlite3 tests ↵Erlend Egeberg Aasland2021-01-079-320/+343
| | | | (GH-20538)
* bpo-24464: Deprecate sqlite3.enable_shared_cache (GH-24008)Erlend Egeberg Aasland2021-01-062-0/+21
|
* bpo-40810: Require SQLite 3.7.15 (GH-24106)Erlend Egeberg Aasland2021-01-062-12/+0
|
* bpo-40810: Fix CheckTraceCallbackContent for SQLite pre 3.7.15 (GH-20530)Erlend Egeberg Aasland2021-01-041-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 Aasland2020-11-172-3/+18
|
* bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)Peter McCormick2020-09-201-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 Storchaka2020-09-172-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 Aasland2020-09-076-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 Shi2020-08-071-1/+1
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21764)Hai Shi2020-08-071-1/+2
|
* bpo-40784: Fix sqlite3 deterministic test (GH-20448)Erlend Egeberg Aasland2020-05-281-9/+27
|
* bpo-39652: Truncate the column name after '[' only if PARSE_COLNAMES is set. ↵Serhiy Storchaka2020-03-212-4/+4
| | | | (GH-18942)
* bpo-38185: Fixed case-insensitive string comparison in sqlite3.Row indexing. ↵Serhiy Storchaka2019-09-171-7/+18
| | | | (GH-16190)
* bpo-38175: Fix a memory leak in comparison of sqlite3.Row objects. (GH-16155)Serhiy Storchaka2019-09-161-7/+21
|
* closes bpo-37347: Fix refcount problem in sqlite3. (GH-14268)gescheit2019-07-131-58/+13
|
* bpo-37406: sqlite3 raises TypeError for wrong operation type (GH-14386)Victor Stinner2019-06-262-3/+3
| | | | | The sqlite3 module now raises TypeError, rather than ValueError, if operation argument type is not str: execute(), executemany() and calling a connection.
* bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. ↵Zackery Spytz2018-12-171-0/+4
| | | | (GH-11175)
* bpo-32788: Better error handling in sqlite3. (GH-3723)Serhiy Storchaka2018-12-101-3/+25
| | | Propagate unexpected errors (like MemoryError and KeyboardInterrupt) to user.
* bpo-34052: Prevent SQLite functions from setting callbacks on exceptions. ↵Sergey Fedoseev2018-12-051-19/+64
| | | | (GH-8113)
* bpo-34041: Allow creating deterministic functions in ↵Sergey Fedoseev2018-07-081-0/+23
| | | | Connection.create_function() (GH-8086)
* Spelling fixes to docs, docstrings, and comments (GH-6374)Ville Skyttä2018-04-201-1/+1
|