[Sqlalchemy-tickets] Issue #3329: fetchmany() fails on bufferedcolproxy on second call w/ no rows (
Brought to you by:
zzzeek
|
From: Mike B. <iss...@bi...> - 2015-03-17 03:36:52
|
New issue 3329: fetchmany() fails on bufferedcolproxy on second call w/ no rows https://bitbucket.org/zzzeek/sqlalchemy/issue/3329/fetchmany-fails-on-bufferedcolproxy-on Mike Bayer: ``` #!diff diff --git a/test/engine/test_execute.py b/test/engine/test_execute.py index 730ef44..a5318c0 100644 --- a/test/engine/test_execute.py +++ b/test/engine/test_execute.py @@ -1070,6 +1070,9 @@ class AlternateResultProxyTest(fixtures.TestBase): rows = r.fetchmany(6) eq_(rows, [(i, "t_%d" % i) for i in range(1, 6)]) + rows = r.fetchmany(2) + eq_(rows, []) + def test_plain(self): self._test_proxy(_result.ResultProxy) ``` |