1. ioggstream
  2. sqlalchemy

Commits

Hong Minhee  committed f283cb3

Version detection of EnterpriseDB (Postgres Plus(R) Advanced Server)

  • Participants
  • Parent commits 4a17e21
  • Branches enterprisedb

Comments (0)

Files changed (1)

File lib/sqlalchemy/dialects/postgresql/base.py

View file
 
     def _get_server_version_info(self, connection):
         v = connection.execute("select version()").scalar()
-        m = re.match('PostgreSQL (\d+)\.(\d+)(?:\.(\d+))?(?:devel)?', v)
+        m = re.match(
+            'PostgreSQL|EnterpriseDB '
+            '(\d+)\.(\d+)(?:\.(\d+))?(?:\.\d+)?(?:devel)?',
+            v)
         if not m:
             raise AssertionError(
                     "Could not determine version from string '%s'" % v)