[1.7.x] Fixed test failures due to refs #20420.

cfcca7ccce renamed connection.queries
to queries_log and this wasn't backported to stable/1.7.x.
This commit is contained in:
Tim Graham 2014-06-12 11:55:31 -04:00
parent 910b37e356
commit 84714dfed7
1 changed files with 1 additions and 1 deletions

View File

@ -694,7 +694,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
# logging is enabled to keep query counts consistent with other backends. # logging is enabled to keep query counts consistent with other backends.
def _savepoint_commit(self, sid): def _savepoint_commit(self, sid):
if self.queries_logged: if self.queries_logged:
self.queries_log.append({ self.queries.append({
'sql': '-- RELEASE SAVEPOINT %s (faked)' % self.ops.quote_name(sid), 'sql': '-- RELEASE SAVEPOINT %s (faked)' % self.ops.quote_name(sid),
'time': '0.000', 'time': '0.000',
}) })