summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-11-03 14:49:20 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2021-11-03 14:49:20 +0000
commit6d4009c0cb2e9ae224e3013e872f0e2ee95ae14e (patch)
treee114b4f984395df156e9792208fdbc0c8dff39a6 /lib/sqlalchemy
parent9fa79bb53638e02aaa45d77397b39a1b652ba5f1 (diff)
parent5740a843ed805d0b066b1e56e8bf3c584c32cf6b (diff)
downloadsqlalchemy-6d4009c0cb2e9ae224e3013e872f0e2ee95ae14e.tar.gz
Merge "Fixed issue in visit_on_duplicate_key_update within a composed expression" into main
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/dialects/mysql/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py
index 4827df12f..684f35c5f 100644
--- a/lib/sqlalchemy/dialects/mysql/base.py
+++ b/lib/sqlalchemy/dialects/mysql/base.py
@@ -1302,7 +1302,7 @@ class MySQLCompiler(compiler.SQLCompiler):
and obj.table is on_duplicate.inserted_alias
):
obj = literal_column(
- "VALUES(" + self.preparer.quote(column.name) + ")"
+ "VALUES(" + self.preparer.quote(obj.name) + ")"
)
return obj
else: