Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #13773 -- Passed in the current connection in a call to db_type…

…(). Thanks to Suor for the report and patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f185a58025ecd48b5557a520e4dcc4de15f85c18 1 parent 398415f
Russell Keith-Magee freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/backends/postgresql/
2  django/db/backends/postgresql/
@@ -64,7 +64,7 @@ def get_index_sql(index_name, opclass=''):
# 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'))
Please sign in to comment.
Something went wrong with that request. Please try again.