]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Render VALUES within composed MySQL on duplicate key expressions
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 4 Mar 2020 22:44:40 +0000 (17:44 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 4 Mar 2020 22:46:55 +0000 (17:46 -0500)
commit1a13a80a35838b22dc98ad818c8721dac09b09a9
tree5a9e5db5490db9218ae938984b177dcadf5cf229
parent451acb6e433c312c6a6916b5dd829dfad6921919
Render VALUES within composed MySQL on duplicate key expressions

Fixed issue in MySQL :meth:`.mysql.Insert.on_duplicate_key_update` construct
where using a SQL function or other composed expression for a column argument
would not properly render the ``VALUES`` keyword surrounding the column
itself.

Fixes: #5173
Change-Id: I16d39c2fdb8bbb7f3d1b2ffdd20e1bf69359ab75
(cherry picked from commit 57b2aae0d9efe91c2338e5a762e04366f86c2651)
doc/build/changelog/unreleased_13/5173.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
test/dialect/mysql/test_compiler.py
test/dialect/mysql/test_on_duplicate.py