Skip to content

Commit

Permalink
Revert "DB manager: PG read enum value for sslmode"
Browse files Browse the repository at this point in the history
This reverts commit 26e9ec9.

It results in unfixable crashes on many platforms, likely due to some
issue in sip itself

Fixes #38393, reopens #38245

The original bug (being asked twice for credentials) is preferable
over a hard crash
  • Loading branch information
nyalldawson committed Oct 22, 2020
1 parent 12a44c7 commit 8c623b2
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.enumValue("sslmode", QgsDataSourceUri.SslPrefer)
sslmode = settings.value("sslmode", QgsDataSourceUri.SslPrefer, type=int)
except TypeError:
sslmode = QgsDataSourceUri.SslPrefer

Expand Down

0 comments on commit 8c623b2

Please sign in to comment.