summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES7
-rw-r--r--VERSION2
-rw-r--r--lib/sqlalchemy/databases/postgres.py3
3 files changed, 10 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index 626461032..fa95094db 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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
diff --git a/VERSION b/VERSION
index c1c884879..6940c75d4 100644
--- a/VERSION
+++ b/VERSION
@@ -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))