Commits

Mikhail Denisenko committed 8976d1d

bugfix new pytds doesnt have cancel method

  • Participants
  • Parent commits 6af71e7

Comments (0)

Files changed (1)

File sqlserver/pytds/base.py

         try:
             return self.cursor.execute(sql, params)
         except pytds.IntegrityError as e:
-            if not self.cursor.connection.mars_enabled:
-                self.cursor.cancel()
             six.reraise(utils.IntegrityError, utils.IntegrityError(*tuple(e.args)), sys.exc_info()[2])
         except pytds.DatabaseError as e:
-            if not self.cursor.connection.mars_enabled:
-                self.cursor.cancel()
             six.reraise(utils.DatabaseError, utils.DatabaseError(*tuple(e.args)), sys.exc_info()[2])
         except:
-            if not self.cursor.connection.mars_enabled:
-                self.cursor.cancel()
             raise
 
     def executemany(self, sql, params):