diff options
author | Jason Kirtland <jek@discorporate.us> | 2007-10-13 21:37:49 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2007-10-13 21:37:49 +0000 |
commit | 0c31d3bd1f717119e45cd88b37a9d537266cb1eb (patch) | |
tree | 138dc672396c6ab66be03b12cedbe2fbd439d4d1 /lib/sqlalchemy/databases/postgres.py | |
parent | 302b10253c899e744164417c2928f257fa254fe6 (diff) | |
download | sqlalchemy-0c31d3bd1f717119e45cd88b37a9d537266cb1eb.tar.gz |
Snipped another generator expression.
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() |