Beispiel #1
0
 def items(self, sql, *args, **kwargs):
     kwargs.setdefault("paramstyle", self.db.driver.PARAM_STYLE)
     execute(self.cursor, sql, *args, **kwargs)
     self.db.driver.fixup_cursor(self.cursor)
     try:
         results = self.cursor.fetchall()
     except Exception as ex:
         results = None
         if not self.db.driver.ignore_exception(ex):
             raise
     return self.db.driver.wrap_results(self.cursor, results)
 def items(self, sql, *args, **kwargs):
     kwargs.setdefault("paramstyle", self.db.driver.PARAM_STYLE)
     execute(self.cursor, sql, *args, **kwargs)
     self.db.driver.fixup_cursor(self.cursor)
     try:
         results = self.cursor.fetchall()
     except Exception as ex:
         results = None
         if not self.db.driver.ignore_exception(ex):
             raise
     return self.db.driver.wrap_results(self.cursor, results)