Fixed an issue where adding/updating records fails if the table name contains percent sign. Fixes #4438.

This commit is contained in:
Nikhil Mohite
2021-03-09 12:40:59 +05:30
committed by Akshay Joshi
parent 5e40f9904d
commit 8cf7c41ad9
2 changed files with 3 additions and 0 deletions

View File

@@ -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']