Ticket #3711: backends.diff
File backends.diff, 585 bytes (added by , 18 years ago) |
---|
-
django/db/backends/util.py
16 16 # formatting with '%' only works with tuples or dicts. 17 17 if not isinstance(params, (tuple, dict)): 18 18 params = tuple(params) 19 if len(self.db.queries) > 25: 20 self.db.queries.pop(0) 19 21 self.db.queries.append({ 20 22 'sql': sql % params, 21 23 'time': "%.3f" % (stop - start),