summaryrefslogtreecommitdiff
path: root/django/db/backends/sqlite3
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2022-11-03 21:46:07 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-11-04 08:03:06 +0100
commit0f4964535cb81c12303dd103c4bdba4891c99c2c (patch)
tree550568c683ce0e136cda4a2a474310ef50e2415d /django/db/backends/sqlite3
parent18dd184ef0a490802b7c85bbf699010db7d0a628 (diff)
Removed obsolete references to pysqlite.
Obsolete since 1b06d5e6f6be8e567ce78c892c485af039830d7d.
Diffstat (limited to 'django/db/backends/sqlite3')
-rw-r--r--django/db/backends/sqlite3/base.py4
-rw-r--r--django/db/backends/sqlite3/operations.py4
2 files changed, 3 insertions, 5 deletions
diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py
index feae360567..e541a6cbb0 100644
--- a/django/db/backends/sqlite3/base.py
+++ b/django/db/backends/sqlite3/base.py
@@ -158,7 +158,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
# between multiple threads. The safe-guarding will be handled at a
# higher level by the `BaseDatabaseWrapper.allow_thread_sharing`
# property. This is necessary as the shareability is disabled by
- # default in pysqlite and it cannot be changed once a connection is
+ # default in sqlite3 and it cannot be changed once a connection is
# opened.
if "check_same_thread" in kwargs and kwargs["check_same_thread"]:
warnings.warn(
@@ -357,7 +357,7 @@ FORMAT_QMARK_REGEX = _lazy_re_compile(r"(?<!%)%s")
class SQLiteCursorWrapper(Database.Cursor):
"""
- Django uses "format" style placeholders, but pysqlite2 uses "qmark" style.
+ Django uses "format" style placeholders, but sqlite3 uses "qmark" style.
This fixes it -- but note that if you want to use a literal "%s" in a query,
you'll need to use "%%s".
"""
diff --git a/django/db/backends/sqlite3/operations.py b/django/db/backends/sqlite3/operations.py
index 0d3a4060ac..bb84d52071 100644
--- a/django/db/backends/sqlite3/operations.py
+++ b/django/db/backends/sqlite3/operations.py
@@ -168,9 +168,7 @@ class DatabaseOperations(BaseDatabaseOperations):
def last_executed_query(self, cursor, sql, params):
# Python substitutes parameters in Modules/_sqlite/cursor.c with:
- # pysqlite_statement_bind_parameters(
- # self->statement, parameters, allow_8bit_chars
- # );
+ # bind_parameters(state, self->statement, parameters);
# Unfortunately there is no way to reach self->statement from Python,
# so we quote and substitute parameters manually.
if params: