mirror of https://github.com/apache/cloudstack.git
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:
parent
711551e34f
commit
c07cca1af6
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue