From 95b1654028f74db4478da2214460ae8c363e8084 Mon Sep 17 00:00:00 2001 From: David Cramer Date: Wed, 13 Apr 2011 11:10:53 -0700 Subject: Fix a bug with marking the last query in a transaction as the end of chain --- debug_toolbar/panels/sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debug_toolbar') diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py index 0fac42b..ff63b6f 100644 --- a/debug_toolbar/panels/sql.py +++ b/debug_toolbar/panels/sql.py @@ -197,7 +197,7 @@ class SQLDebugPanel(DebugPanel): i += 1 if trans_id: - self._queries[i][1]['ends_trans'] = True + self._queries[i-1][1]['ends_trans'] = True context = self.context.copy() context.update({ -- cgit v1.2.3