Ticket #14110: where.cast.diff
File where.cast.diff, 948 bytes (added by , 14 years ago) |
---|
-
django/db/models/sql/where.py
1 # -*- coding: utf-8 -*- 1 2 """ 2 3 Code to manage the creation and SQL rendering of 'where' constraints. 3 4 """ … … 168 169 value_annot = True 169 170 170 171 if lookup_type in connection.operators: 171 format = "%s %%s %%s" % (connection.ops.lookup_cast(lookup_type),)172 format = "%s %%s" % (connection.ops.lookup_cast(lookup_type),) 172 173 return (format % (field_sql, 173 connection.operators[lookup_type] % cast_sql,174 extra),params)174 connection.operators[lookup_type] % (cast_sql or extra)), 175 params) 175 176 176 177 if lookup_type == 'in': 177 178 if not value_annot: