summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2019-07-19 20:22:33 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2019-07-19 20:22:33 +0000
commitfa8a5e823430c23c44b1ba3cd7512cb7f22e93b2 (patch)
tree635d502559a9902db2842c28a175c2c3a5a83b14 /lib/sqlalchemy/sql/compiler.py
parent3bc3ea395eb16f548a11849bc15f0f78b7b2400f (diff)
parent88168db8e9a51ce438e06bfe792e758ed9297ab8 (diff)
downloadsqlalchemy-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.py6
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 "