]> 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:27 +0000 (17:46 -0500)
commit57b2aae0d9efe91c2338e5a762e04366f86c2651
tree8c44e58a44befcf032b02f79e1641516ff4e1f9a
parent72cb8e8cbfe1a1b70e9085e46b4515287188547b
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
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