Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit f185a58025ecd48b5557a520e4dcc4de15f85c18 1 parent 398415f
Russell Keith-Magee authored July 30, 2010
2  django/db/backends/postgresql/creation.py
@@ -64,7 +64,7 @@ def get_index_sql(index_name, opclass=''):
64 64
             # a second index that specifies their operator class, which is
65 65
             # needed when performing correct LIKE queries outside the
66 66
             # C locale. See #12234.
67  
-            db_type = f.db_type()
  67
+            db_type = f.db_type(connection=self.connection)
68 68
             if db_type.startswith('varchar'):
69 69
                 output.append(get_index_sql('%s_%s_like' % (db_table, f.column),
70 70
                                             ' varchar_pattern_ops'))

0 notes on commit f185a58

Please sign in to comment.
Something went wrong with that request. Please try again.