Skip to content
This repository
Browse code

Added SQL Server test no_fetch for issue 89.

  • Loading branch information...
commit bcf76422e4aaa2028ce945c61296fc2d5e9ee3b6 1 parent 7d55917
Michael Kleehammer authored

Showing 1 changed file with 7 additions and 0 deletions. Show diff stats Hide diff stats

  1. +7 0 tests/sqlservertests.py
7 tests/sqlservertests.py
@@ -1222,6 +1222,13 @@ def test_func_param(self):
1222 1222 value = self.cursor.execute("select * from func1(?)", 'test').fetchone()[0]
1223 1223 self.assertEquals(value, 'test')
1224 1224
  1225 + def test_no_fetch(self):
  1226 + # Issue 89 with FreeTDS: Multiple selects (or catalog functions that issue selects) without fetches seem to
  1227 + # confuse the driver.
  1228 + self.cursor.execute('select 1')
  1229 + self.cursor.execute('select 1')
  1230 + self.cursor.execute('select 1')
  1231 +
1225 1232
1226 1233 def main():
1227 1234 from optparse import OptionParser

0 comments on commit bcf7642

Please sign in to comment.
Something went wrong with that request. Please try again.