]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fixed issue in visit_on_duplicate_key_update within a composed expression
authorCristian Sabaila <cristian.sabaila@geotogether.com>
Wed, 3 Nov 2021 01:39:08 +0000 (21:39 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 3 Nov 2021 02:27:32 +0000 (22:27 -0400)
commit5740a843ed805d0b066b1e56e8bf3c584c32cf6b
tree601aaf9da436741c2692b08c406c0dd71a1396ee
parent37bc1285c5bddf1e1b3a5830c530139e6fdd4bc4
Fixed issue in visit_on_duplicate_key_update within a composed expression

Fixed issue in MySQL :meth:`_mysql.Insert.on_duplicate_key_update` which
would render the wrong column name when an expression were used in a VALUES
expression. Pull request courtesy Cristian Sabaila.

Fixes: #7281
Closes: #7285
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/7285
Pull-request-sha: 3e6ad6f2fecc6ae36a10a5a34b5d3d393483edbb

Change-Id: I83377c20eae6358fead9e7e361127938e538a71c
doc/build/changelog/unreleased_14/7281.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