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 e29ee16 commit 3b13409Copy full SHA for 3b13409
mamonsu/plugins/pgsql/driver/pool.py
@@ -128,9 +128,11 @@ def is_pgpro_ee(self, db=None):
128
if db in self._cache['pgproee']:
129
return self._cache['pgproee'][db]
130
try:
131
- ver = self.query('select pgpro_edition()')[0][0]
132
- self._cache['pgproee'][db] = (ver.lower() == 'enterprise')
+ ed = self.query('select pgpro_edition()')[0][0]
+ self._connections[db].log.info('pgpro_edition is {}'.format(ed))
133
+ self._cache['pgproee'][db] = (ed.lower() == 'enterprise')
134
except:
135
+ self._connections[db].log.info('pgpro_edition() is not defined')
136
self._cache['pgproee'][db] = False
137
138
0 commit comments