diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-07-14 18:28:07 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-07-14 18:28:23 -0400 |
| commit | 6fad9651b7226b81baba146bccdd5d6f4c33d950 (patch) | |
| tree | 25ab303449abdee46143b2d0b3a9dcd8c7439520 /lib/sqlalchemy/sql | |
| parent | 110801750ebc212c5820e053590464c42d9f5257 (diff) | |
| download | sqlalchemy-6fad9651b7226b81baba146bccdd5d6f4c33d950.tar.gz | |
- Fixed bug where multi-valued :class:`.Insert` construct would fail
to check subsequent values entries beyond the first one given
for literal SQL expressions.
fixes #3069
Diffstat (limited to 'lib/sqlalchemy/sql')
| -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 5838cd18e..1295874b9 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -2210,10 +2210,12 @@ class SQLCompiler(Compiled): [ ( c, - self._create_crud_bind_param( + (self._create_crud_bind_param( c, row[c.key], name="%s_%d" % (c.key, i + 1) - ) + ) if elements._is_literal(row[c.key]) + else self.process( + row[c.key].self_group(), **kw)) if c.key in row else param ) for (c, param) in values_0 |
