From f7504bdbad5dc0d2685ada57128ece4ae7690ed3 Mon Sep 17 00:00:00 2001 From: Scott Schaefer Date: Fri, 6 Sep 2013 18:14:26 -0600 Subject: re.match to re.search Convert to re.search to eliminate the restriction on only matching the beginning of the string --- lib/sqlalchemy/dialects/postgresql/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/dialects/postgresql/base.py') diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 8938b3193..01bf6a829 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -1543,7 +1543,7 @@ class PGDialect(default.DefaultDialect): def _get_server_version_info(self, connection): v = connection.execute("select version()").scalar() - m = re.match( + m = re.search( '(?:PostgreSQL|EnterpriseDB) ' '(\d+)\.(\d+)(?:\.(\d+))?(?:\.\d+)?(?:devel)?', v) -- cgit v1.2.1