diff options
Diffstat (limited to 'lib/sqlalchemy/databases/postgres.py')
| -rw-r--r-- | lib/sqlalchemy/databases/postgres.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py index 80a5c1f40..d894b1f2c 100644 --- a/lib/sqlalchemy/databases/postgres.py +++ b/lib/sqlalchemy/databases/postgres.py @@ -700,7 +700,8 @@ class PGSchemaGenerator(compiler.SchemaGenerator): if whereclause is not None: compiler = self._compile(whereclause, None) # this might belong to the compiler class - inlined_clause = str(compiler) % dict((key,bind.value) for key,bind in compiler.binds.iteritems()) + inlined_clause = str(compiler) % dict( + [(key,bind.value) for key,bind in compiler.binds.iteritems()]) self.append(" WHERE " + inlined_clause) self.execute() |
