diff options
author | Russell Keith-Magee <russell@keith-magee.com> | 2010-07-30 02:54:47 +0000 |
---|---|---|
committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-07-30 02:54:47 +0000 |
commit | f185a58025ecd48b5557a520e4dcc4de15f85c18 (patch) | |
tree | 5eb0b60d1a9bc6d6a15d6173763ea09a6014eec3 /django/db/backends/postgresql/creation.py | |
parent | 398415fc231b51125ecc6f05afaf7e47da12390e (diff) | |
download | django-f185a58025ecd48b5557a520e4dcc4de15f85c18.tar.gz |
Fixed #13773 -- Passed in the current connection in a call to db_type(). Thanks to Suor for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13451 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/postgresql/creation.py')
-rw-r--r-- | django/db/backends/postgresql/creation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/postgresql/creation.py b/django/db/backends/postgresql/creation.py index e3587f0e37..9984716389 100644 --- a/django/db/backends/postgresql/creation.py +++ b/django/db/backends/postgresql/creation.py @@ -64,7 +64,7 @@ class DatabaseCreation(BaseDatabaseCreation): # a second index that specifies their operator class, which is # needed when performing correct LIKE queries outside the # C locale. See #12234. - db_type = f.db_type() + db_type = f.db_type(connection=self.connection) if db_type.startswith('varchar'): output.append(get_index_sql('%s_%s_like' % (db_table, f.column), ' varchar_pattern_ops')) |