Bug 14612: Database client returns empty list after one successful query

Status 14612: resolved fixed
reviewed-by: Prasanna Santhanam <Prasanna.Santhanam@citrix.com>

Commit to refresh the transaction state
This commit is contained in:
Chirag Jog 2012-04-06 05:28:55 -07:00
parent 711551e34f
commit c07cca1af6
1 changed files with 2 additions and 0 deletions

View File

@ -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)