diff options
| -rw-r--r-- | CHANGES | 7 | ||||
| -rw-r--r-- | VERSION | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/databases/postgres.py | 3 |
3 files changed, 10 insertions, 2 deletions
@@ -4,6 +4,13 @@ ======= CHANGES ======= +0.5.0rc5 +======== +- bugfixes +- postgres + - Calling alias.execute() in conjunction with + server_side_cursors won't raise AttributeError. + 0.5.0rc4 ======== - features @@ -1 +1 @@ -0.5.0rc4 +0.5.0rc5 diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py index 69fad230d..57620c007 100644 --- a/lib/sqlalchemy/databases/postgres.py +++ b/lib/sqlalchemy/databases/postgres.py @@ -235,7 +235,8 @@ class PGExecutionContext(default.DefaultExecutionContext): # TODO: coverage for server side cursors + select.for_update() is_server_side = \ self.dialect.server_side_cursors and \ - ((self.compiled and isinstance(self.compiled.statement, expression.Selectable) and not self.compiled.statement.for_update) \ + ((self.compiled and isinstance(self.compiled.statement, expression.Selectable) + and not getattr(self.compiled.statement, 'for_update', False)) \ or \ ( (not self.compiled or isinstance(self.compiled.statement, expression._TextClause)) |
