Author: russellm
Date: 2010-07-29 21:58:51 -0500 (Thu, 29 Jul 2010)
New Revision: 13453

Modified:
   django/branches/releases/1.2.X/django/db/backends/postgresql/creation.py
Log:
[1.2.X] Fixed #13773 -- Passed in the current connection in a call to 
db_type(). Thanks to Suor for the report and patch.

Backport of r13451 from trunk.

Modified: 
django/branches/releases/1.2.X/django/db/backends/postgresql/creation.py
===================================================================
--- django/branches/releases/1.2.X/django/db/backends/postgresql/creation.py    
2010-07-30 02:55:20 UTC (rev 13452)
+++ django/branches/releases/1.2.X/django/db/backends/postgresql/creation.py    
2010-07-30 02:58:51 UTC (rev 13453)
@@ -63,7 +63,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.

Reply via email to