﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
8737	PostgreSQL version detection is fragile; no longer works for EnterpriseDB	django@…	nobody	"It appears that line 16 in /db/backends/postgresql/versions.py breaks the PostgreSQL version detection for EnterpriseDB. The error returned is 

{{{
File ""/usr/lib/python2.5/site-packages/django/db/backends/postgresql/version.py"", line 16, in get_version
major, minor = VERSION_RE.search(version).groups()
AttributeError: 'NoneType' object has no attribute 'groups'
}}}

Changing
{{{
#!python
VERSION_RE = re.compile(r'PostgreSQL (\d+)\.(\d+)\.')
}}}

to

{{{
#!python
VERSION_RE = re.compile(r'\S+ (\d+)\.(\d+)\.')
}}}

makes it work for both PostgreSQL and EnterpriseDB."		closed	Database layer (models, ORM)	1.0		fixed	postgresql, enterprisedb, version	fawad@…	Accepted	1	0	0	1	0	0
