diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2021-11-03 14:49:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2021-11-03 14:49:20 +0000 |
commit | 6d4009c0cb2e9ae224e3013e872f0e2ee95ae14e (patch) | |
tree | e114b4f984395df156e9792208fdbc0c8dff39a6 /lib/sqlalchemy | |
parent | 9fa79bb53638e02aaa45d77397b39a1b652ba5f1 (diff) | |
parent | 5740a843ed805d0b066b1e56e8bf3c584c32cf6b (diff) | |
download | sqlalchemy-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.py | 2 |
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: |