diff --git a/Django-1.0.2/django/db/backends/postgresql/operations.py b/Django-1.0.2/django/db/backends/postgresql/operations.py
index 2352109..223b2ba 100644
a
|
b
|
import re
|
2 | 2 | |
3 | 3 | from django.db.backends import BaseDatabaseOperations |
4 | 4 | |
5 | | server_version_re = re.compile(r'PostgreSQL (\d{1,2})\.(\d{1,2})\.?(\d{1,2})?') |
| 5 | server_version_re = re.compile(r'\S+ (\d{1,2})\.(\d{1,2})\.?(\d{1,2})?') |
6 | 6 | |
7 | 7 | # This DatabaseOperations class lives in here instead of base.py because it's |
8 | 8 | # used by both the 'postgresql' and 'postgresql_psycopg2' backends. |
diff --git a/Django-1.0.2/django/db/backends/postgresql/version.py b/Django-1.0.2/django/db/backends/postgresql/version.py
index e14d791..9578035 100644
a
|
b
|
Extracts the version of the PostgreSQL server.
|
4 | 4 | |
5 | 5 | import re |
6 | 6 | |
7 | | VERSION_RE = re.compile(r'PostgreSQL (\d+)\.(\d+)\.') |
| 7 | # This reg-exp is intentionally fairly flexible here. Require only the major |
| 8 | # and minor version numbers, but need to be able to handle standard stuff like: |
| 9 | # PostgreSQL 8.3.6 |
| 10 | # EnterpriseDB 8.3 |
| 11 | # PostgreSQL 8.3 beta4 |
| 12 | # PostgreSQL 8.4beta1 |
| 13 | VERSION_RE = re.compile(r'\S+ (\d+)\.(\d+)') |
8 | 14 | |
9 | 15 | def get_version(cursor): |
10 | 16 | """ |