execution options not set correctly in yield per

Issue #2661 resolved
Mike Bayer repo owner created an issue
--- a/test/orm/test_query.py    Thu Feb 07 20:29:47 2013 -0500
+++ b/test/orm/test_query.py    Thu Feb 07 23:05:45 2013 -0500
@@ -1784,6 +1784,13 @@
         except StopIteration:
             pass

+    def test_yield_per_and_execution_options(self):
+        User = self.classes.User
+
+        sess = create_session()
+        q = sess.query(User).yield_per(1)
+        q = q.execution_options(stream_results=True)
+
 class HintsTest(QueryTest, AssertsCompiledSQL):
     def test_hints(self):
         User = self.classes.User

Comments (2)

  1. Log in to comment