]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- bump, this may become 0.5.0
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 14 Nov 2008 22:11:05 +0000 (22:11 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 14 Nov 2008 22:11:05 +0000 (22:11 +0000)
- Calling alias.execute() in conjunction with
server_side_cursors won't raise AttributeError.

CHANGES
VERSION
lib/sqlalchemy/databases/postgres.py

diff --git a/CHANGES b/CHANGES
index 6264610323e9a174e4c0c8d15f04b8852ffa9da8..fa95094db8748e47dbe9b61c16cd4e3f23dc5b8f 100644 (file)
--- 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 c1c884879b08779f9da239e855edcdd611e15600..6940c75d4877dacf0e1c2cdad66244b787cb2d8e 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.5.0rc4
+0.5.0rc5
index 69fad230dda4a98ec2fa7d7dc01399fb1ef04304..57620c007cb4b0837e6c238a0a6138c1de4c0959 100644 (file)
@@ -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))