Ensure errors thrown when deleting rows in the query tool in edit mode are shown properly. Fixes #2356

This commit is contained in:
Surinder Kumar 2017-05-02 12:20:30 +01:00 committed by Dave Page
parent 4acecfa59a
commit 93df5e3e54

View File

@ -526,7 +526,9 @@ class TableCommand(GridCommand):
for val in query_res:
if query_res[val]['status']:
query_res[val]['result'] = 'Transaction ROLLBACK'
_rowid = list_of_rowid[i]
# If list is empty set rowid to 1
_rowid = list_of_rowid[i] if list_of_rowid else 1
return status, res, query_res, _rowid