mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where adding/updating records fails if the table name contains percent sign. Fixes #4438.
This commit is contained in:
committed by
Akshay Joshi
parent
5e40f9904d
commit
8cf7c41ad9
@@ -36,6 +36,8 @@ def save_changed_data(changed_data, columns_info, conn, command_obj,
|
||||
operations = ('added', 'updated', 'deleted')
|
||||
list_of_sql = {}
|
||||
_rowid = None
|
||||
# Replace '%' with '%%' as python use '%' as string formatting.
|
||||
command_obj.object_name = command_obj.object_name.replace('%', '%%')
|
||||
|
||||
pgadmin_alias = {
|
||||
col_name: col_info['pgadmin_alias']
|
||||
|
||||
Reference in New Issue
Block a user