diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2019-07-19 20:22:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@bbpush.zzzcomputing.com> | 2019-07-19 20:22:33 +0000 |
commit | fa8a5e823430c23c44b1ba3cd7512cb7f22e93b2 (patch) | |
tree | 635d502559a9902db2842c28a175c2c3a5a83b14 /lib/sqlalchemy/sql/compiler.py | |
parent | 3bc3ea395eb16f548a11849bc15f0f78b7b2400f (diff) | |
parent | 88168db8e9a51ce438e06bfe792e758ed9297ab8 (diff) | |
download | sqlalchemy-fa8a5e823430c23c44b1ba3cd7512cb7f22e93b2.tar.gz |
Merge "Support tuple IN VALUES for SQLite, others"
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index ea7e890e7..740abeb3d 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -966,13 +966,17 @@ class SQLCompiler(Compiled): sep = " " else: sep = OPERATORS[clauselist.operator] - return sep.join( + + text = sep.join( s for s in ( c._compiler_dispatch(self, **kw) for c in clauselist.clauses ) if s ) + if clauselist._tuple_values and self.dialect.tuple_in_values: + text = "VALUES " + text + return text def visit_case(self, clause, **kwargs): x = "CASE " |