mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Prevent an error that may occur when editing data with an integer primary key. Fixes #4404
This commit is contained in:
committed by
Dave Page
parent
2451db8797
commit
da8cf14047
@@ -781,7 +781,8 @@ class TableCommand(GridCommand):
|
||||
for each_row in changed_data[of_type]:
|
||||
data = changed_data[of_type][each_row]['data']
|
||||
pk_escaped = {
|
||||
pk: pk_val.replace('%', '%%')
|
||||
pk: pk_val.replace('%', '%%') if hasattr(
|
||||
pk_val, 'replace') else pk_val
|
||||
for pk, pk_val in
|
||||
changed_data[of_type][each_row]['primary_keys']
|
||||
.items()
|
||||
|
||||
Reference in New Issue
Block a user