Author: russellm
Date: 2010-07-29 21:54:47 -0500 (Thu, 29 Jul 2010)
New Revision: 13451
Modified:
django/trunk/django/db/backends/postgresql/creation.py
Log:
Fixed #13773 -- Passed in the current connection in a call to db_type(). Thanks
to Suor for the report and patch.
Modified: django/trunk/django/db/backends/postgresql/creation.py
===================================================================
--- django/trunk/django/db/backends/postgresql/creation.py 2010-07-30
02:43:01 UTC (rev 13450)
+++ django/trunk/django/db/backends/postgresql/creation.py 2010-07-30
02:54:47 UTC (rev 13451)
@@ -64,7 +64,7 @@
# 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'))
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.