Skip to content
Permalink
Browse files

DB manager: PG read enum value for sslmode

Fixes #38245

(cherry picked from commit 6cbbf5e)
  • Loading branch information
elpaso authored and nyalldawson committed Nov 20, 2020
1 parent d7c1ccb commit 98abc4fc1790f6ebe39983f729b5e67d34b73f18
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 98abc4f

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