]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix non-ascii quotes in sqlite on update feature
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 7 Dec 2020 18:40:48 +0000 (13:40 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 7 Dec 2020 18:42:12 +0000 (13:42 -0500)
Fixed a SQLite source file that had non-ascii characters inside of its
docstring without a source encoding, introduced within the "INSERT..ON
CONFLICT" feature, which would cause failures under Python 2.

Change-Id: Ie789d2ce554d24643a453b60bb11da9b69106c19

doc/build/changelog/unreleased_14/source_enc.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/sqlite/base.py

diff --git a/doc/build/changelog/unreleased_14/source_enc.rst b/doc/build/changelog/unreleased_14/source_enc.rst
new file mode 100644 (file)
index 0000000..85ed8d4
--- /dev/null
@@ -0,0 +1,6 @@
+.. change::
+    :tags: bug, general
+
+    Fixed a SQLite source file that had non-ascii characters inside of its
+    docstring without a source encoding, introduced within the "INSERT..ON
+    CONFLICT" feature, which would cause failures under Python 2.
index 7c1bbb18ef26b1f194919ff0671db426e5f26b73..c56c1f020338dd6446d271450f7f0e03f850ef53 100644 (file)
@@ -419,8 +419,8 @@ From version 3.24.0 onwards, SQLite supports "upserts" (update or insert)
 of rows into a table via the ``ON CONFLICT`` clause of the ``INSERT``
 statement. A candidate row will only be inserted if that row does not violate
 any unique or primary key constraints. In the case of a unique constraint violation, a
-secondary action can occur which can be either “DO UPDATE”, indicating that
-the data in the target row should be updated, or “DO NOTHING”, which indicates
+secondary action can occur which can be either "DO UPDATE", indicating that
+the data in the target row should be updated, or "DO NOTHING", which indicates
 to silently skip this row.
 
 Conflicts are determined using columns that are part of existing unique
@@ -469,7 +469,7 @@ and :meth:`_sqlite.Insert.on_conflict_do_nothing`:
 Specifying the Target
 ^^^^^^^^^^^^^^^^^^^^^
 
-Both methods supply the “target” of the conflict using column inference:
+Both methods supply the "target" of the conflict using column inference:
 
 * The :paramref:`_sqlite.Insert.on_conflict_do_update.index_elements` argument
   specifies a sequence containing string column names, :class:`_schema.Column`