Permalink
Browse files

Added SQL Server test no_fetch for issue 89.

  • Loading branch information...
1 parent 7d55917 commit bcf76422e4aaa2028ce945c61296fc2d5e9ee3b6 @mkleehammer committed Nov 21, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 tests/sqlservertests.py
View
7 tests/sqlservertests.py
@@ -1222,6 +1222,13 @@ def test_func_param(self):
value = self.cursor.execute("select * from func1(?)", 'test').fetchone()[0]
self.assertEquals(value, 'test')
+ def test_no_fetch(self):
+ # Issue 89 with FreeTDS: Multiple selects (or catalog functions that issue selects) without fetches seem to
+ # confuse the driver.
+ self.cursor.execute('select 1')
+ self.cursor.execute('select 1')
+ self.cursor.execute('select 1')
+
def main():
from optparse import OptionParser

0 comments on commit bcf7642

Please sign in to comment.