Ticket #3141: extra_param_fix.diff
File extra_param_fix.diff, 618 bytes (added by , 17 years ago) |
---|
-
util.py
19 19 return self.cursor.execute(sql, params) 20 20 finally: 21 21 stop = time() 22 try: 23 sql = smart_unicode(sql) % convert_args(params) 24 except TypeError: 25 sql = smart_unicode(sql) 22 26 self.db.queries.append({ 23 'sql': s mart_unicode(sql) % convert_args(params),27 'sql': sql, 24 28 'time': "%.3f" % (stop - start), 25 29 }) 26 30