﻿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
6954	PostgreSQL version test is fragile	Leo Soto M.	nobody	"On source:django/trunk/django/db/backends/postgresql/operations.py, `_get_postgres_version` does the following:

{{{
#!python
cursor.execute(""SELECT version()"")
self._postgres_version = [int(val) for val in cursor.fetchone()[0].split()[1].split('.')]
}}}

But that fails with some PostgreSQL installations on win32, where version() gives:

{{{
PostgreSQL 8.3.1, compiled by Visual C++ build 1400
}}}

So the last `split()` returns `['8', '3', '1,']`. And `int('1,')` obviously fails.

This renders Django+PostgreSQL unusable on some installations (at least with Django 0.96)"		closed	Database layer (models, ORM)	dev		duplicate			Unreviewed	0	0	0	0	0	0
