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

@@ -19,6 +19,7 @@ Housekeeping
Bug fixes
*********
| `Issue #4438 <https://redmine.postgresql.org/issues/4438>`_ - Fixed an issue where adding/updating records fails if the table name contains percent sign.
| `Issue #4959 <https://redmine.postgresql.org/issues/4959>`_ - Fixed an issue where the properties tab for collection nodes is unresponsive after switching the tabs.
| `Issue #5073 <https://redmine.postgresql.org/issues/5073>`_ - Fixed an issue where the Save button is enabled for functions/procedures by default when open the properties dialog.
| `Issue #5119 <https://redmine.postgresql.org/issues/5119>`_ - Fixed an issue where hanging symlinks in a directory cause select file dialog to break.

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