Ticket #10842: fix_re_django-1.1-dev.diff

File fix_re_django-1.1-dev.diff, 1.0 KB (added by Horacio G. de Oro, 16 years ago)

fixes for django 1.1-dev

  • django/db/backends/postgresql/operations.py

    diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py
    index 3582460..47cb2af 100644
    a b import re  
    22
    33from django.db.backends import BaseDatabaseOperations
    44
    5 server_version_re = re.compile(r'PostgreSQL (\d{1,2})\.(\d{1,2})\.?(\d{1,2})?')
     5server_version_re = re.compile(r'\S+ (\d{1,2})\.(\d{1,2})\.?(\d{1,2})?')
    66
    77# This DatabaseOperations class lives in here instead of base.py because it's
    88# used by both the 'postgresql' and 'postgresql_psycopg2' backends.
  • django/db/backends/postgresql/version.py

    diff --git a/django/db/backends/postgresql/version.py b/django/db/backends/postgresql/version.py
    index ed2ad9e..9578035 100644
    a b import re  
    99#   PostgreSQL 8.3.6
    1010#   EnterpriseDB 8.3
    1111#   PostgreSQL 8.3 beta4
     12#   PostgreSQL 8.4beta1
    1213VERSION_RE = re.compile(r'\S+ (\d+)\.(\d+)')
    1314
    1415def get_version(cursor):
Back to Top