Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DB manager: PG read enum value for sslmode
Fixes #38245
  • Loading branch information
elpaso committed Aug 13, 2020
1 parent fb14618 commit 26e9ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/db_plugins/postgis/plugin.py
Expand Up @@ -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

Expand Down

0 comments on commit 26e9ec9

Please sign in to comment.