mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
bpo-40744: Drop support for SQLite pre 3.7.3 (GH-20909)
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>
This commit is contained in:
parent
22748a83d9
commit
207c321f13
12 changed files with 29 additions and 94 deletions
|
|
@ -18,7 +18,8 @@ application using SQLite and then port the code to a larger database such as
|
|||
PostgreSQL or Oracle.
|
||||
|
||||
The sqlite3 module was written by Gerhard Häring. It provides a SQL interface
|
||||
compliant with the DB-API 2.0 specification described by :pep:`249`.
|
||||
compliant with the DB-API 2.0 specification described by :pep:`249`, and
|
||||
requires SQLite 3.7.3 or newer.
|
||||
|
||||
To use the module, you must first create a :class:`Connection` object that
|
||||
represents the database. Here the data will be stored in the
|
||||
|
|
@ -591,8 +592,6 @@ Connection Objects
|
|||
dest = sqlite3.connect(':memory:')
|
||||
source.backup(dest)
|
||||
|
||||
Availability: SQLite 3.6.11 or higher
|
||||
|
||||
.. versionadded:: 3.7
|
||||
|
||||
|
||||
|
|
@ -701,9 +700,6 @@ Cursor Objects
|
|||
statements because we cannot determine the number of rows a query produced
|
||||
until all rows were fetched.
|
||||
|
||||
With SQLite versions before 3.6.5, :attr:`rowcount` is set to 0 if
|
||||
you make a ``DELETE FROM table`` without any condition.
|
||||
|
||||
.. attribute:: lastrowid
|
||||
|
||||
This read-only attribute provides the rowid of the last modified row. It is
|
||||
|
|
|
|||
|
|
@ -191,10 +191,15 @@ that may require changes to your code.
|
|||
Build Changes
|
||||
=============
|
||||
|
||||
|
||||
* The C99 functions :c:func:`snprintf` and :c:func:`vsnprintf` are now required
|
||||
to build Python.
|
||||
(Contributed by Victor Stinner in :issue:`36020`.)
|
||||
|
||||
* :mod:`sqlite3` requires SQLite 3.7.3 or higher.
|
||||
(Contributed by Sergey Fedoseev and Erlend E. Aasland :issue:`40744`.)
|
||||
|
||||
|
||||
|
||||
C API Changes
|
||||
=============
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue