From c07cca1af63cdec53331d94829946f2a3ad8d365 Mon Sep 17 00:00:00 2001 From: Chirag Jog Date: Fri, 6 Apr 2012 05:28:55 -0700 Subject: [PATCH] Bug 14612: Database client returns empty list after one successful query Status 14612: resolved fixed reviewed-by: Prasanna Santhanam Commit to refresh the transaction state --- tools/testClient/dbConnection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testClient/dbConnection.py b/tools/testClient/dbConnection.py index b6d99193f46..afe5be58695 100644 --- a/tools/testClient/dbConnection.py +++ b/tools/testClient/dbConnection.py @@ -45,6 +45,8 @@ class dbConnection(object): resultRow = [] cursor = None try: + # commit to restart the transaction, else we don't get fresh data + self.db.commit() cursor = self.db.cursor() cursor.execute(sql)