diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2021-04-17 05:18:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2021-04-17 05:18:47 +0000 |
commit | e42f0abe28c81f4bcbae8afc989a60ee19e180e1 (patch) | |
tree | 53b70e5f270c42e824c2debe090ca52a3e914421 /lib/sqlalchemy/sql/compiler.py | |
parent | 23a09b117d4af2418b754fc6d3b3b9728e8f0b14 (diff) | |
parent | 901f7a2b534e4bbc88d7c6894541223cb0dd968d (diff) | |
download | sqlalchemy-e42f0abe28c81f4bcbae8afc989a60ee19e180e1.tar.gz |
Merge "pass asfrom correctly in compilers"
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index a466216e3..8a4fa1f2f 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -3885,16 +3885,18 @@ class StrSQLCompiler(SQLCompiler): def update_from_clause( self, update_stmt, from_table, extra_froms, from_hints, **kw ): + kw["asfrom"] = True return "FROM " + ", ".join( - t._compiler_dispatch(self, asfrom=True, fromhints=from_hints, **kw) + t._compiler_dispatch(self, fromhints=from_hints, **kw) for t in extra_froms ) def delete_extra_from_clause( self, update_stmt, from_table, extra_froms, from_hints, **kw ): + kw["asfrom"] = True return ", " + ", ".join( - t._compiler_dispatch(self, asfrom=True, fromhints=from_hints, **kw) + t._compiler_dispatch(self, fromhints=from_hints, **kw) for t in extra_froms ) |