We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc8be06 commit 53031b6Copy full SHA for 53031b6
mamonsu/plugins/pgsql/driver/pool.py
@@ -127,9 +127,11 @@ def is_pgpro_ee(self, db=None):
127
return False
128
if db in self._cache['pgproee']:
129
return self._cache['pgproee'][db]
130
- self._cache['pgproee'][db] = (
131
- self.query('select pgpro_edition()')[0][0].lower() == 'enterprise'
132
- )
+ try:
+ ver = self.query('select pgpro_edition()')[0][0]
+ self._cache['pgproee'][db] = (ver.lower() == 'enterprise')
133
+ except:
134
+ self._cache['pgproee'][db] = False
135
136
137
def extension_installed(self, ext, db=None):
0 commit comments