Skip to content
Permalink
Browse files

DB manager: PG read enum value for sslmode

Fixes #38245
  • Loading branch information
elpaso authored and nyalldawson committed Nov 16, 2020
1 parent 74ea340 commit 6cbbf5ebd1fa3e9714c7af8b97d7572636107b61
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/db_manager/db_plugins/postgis/plugin.py
@@ -84,7 +84,7 @@ def connect(self, parent=None):

useEstimatedMetadata = settings.value("estimatedMetadata", False, type=bool)
try:
sslmode = settings.value("sslmode", QgsDataSourceUri.SslPrefer, type=int)
sslmode = settings.enumValue("sslmode", QgsDataSourceUri.SslPrefer)
except TypeError:
sslmode = QgsDataSourceUri.SslPrefer

0 comments on commit 6cbbf5e

Please sign in to comment.
You can’t perform that action at this time.