mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure errors thrown when deleting rows in the query tool in edit mode are shown properly. Fixes #2356
This commit is contained in:
parent
4acecfa59a
commit
93df5e3e54
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user