Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added SQL Server test no_fetch for issue 89.

  • Loading branch information...
commit bcf76422e4aaa2028ce945c61296fc2d5e9ee3b6 1 parent 7d55917
Michael Kleehammer authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 tests/sqlservertests.py
7 tests/sqlservertests.py
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.