Ticket #10842: fix_re_django-1.0.2.diff

File fix_re_django-1.0.2.diff, 1.4 KB (added by hgdeoro, 6 years ago)

fixes for django 1.0.2

  • Django-1.0.2/django/db/backends/postgresql/operations.py

    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 
    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-1.0.2/django/db/backends/postgresql/version.py

    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. 
    44
    55import re
    66
    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
     13VERSION_RE = re.compile(r'\S+ (\d+)\.(\d+)')
    814
    915def get_version(cursor):
    1016    """
Back to Top