Ticket #11722: possible_fix.patch

File possible_fix.patch, 600 bytes (added by plandry@…, 5 years ago)
  • django/db/models/sql/where.py

     
    158158
    159159        if hasattr(params, 'as_sql'):
    160160            extra, params = params.as_sql(qn, connection)
    161             cast_sql = ''
    162         else:
    163             extra = ''
     161            cast_sql = '%s' % extra
     162        extra = ''
    164163
    165164        if (len(params) == 1 and params[0] == '' and lookup_type == 'exact'
    166165            and connection.features.interprets_empty_strings_as_nulls):
Back to Top