mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user