Fixed an issue where the blank string is stored instead of NULL in the server table of SQLite database. Fixes #6915

This commit is contained in:
Akshay Joshi 2021-10-18 15:50:42 +05:30
parent c13b1b60e3
commit b8072bd630
2 changed files with 4 additions and 0 deletions

View File

@ -39,3 +39,4 @@ Bug fixes
| `Issue #6905 <https://redmine.postgresql.org/issues/6905>`_ - Fixed an issue where the users are unable to load the databases behind an HTTP reverse proxy.
| `Issue #6908 <https://redmine.postgresql.org/issues/6908>`_ - Fixed an issue where each click to refresh the collection node, the number of objects decreasing by tens or more.
| `Issue #6912 <https://redmine.postgresql.org/issues/6912>`_ - Fixed browser tree sort order regression issue.
| `Issue #6915 <https://redmine.postgresql.org/issues/6915>`_ - Fixed an issue where the blank string is stored instead of NULL in the server table of SQLite database.

View File

@ -811,6 +811,9 @@ class ServerNode(PGChildNodeView):
@staticmethod
def _update_server_details(server, sharedserver,
config_param_map, arg, value):
if value == '':
value = None
if server.shared and server.user_id != current_user.id:
setattr(sharedserver, config_param_map[arg], value)
else: