OR ...
if lookup_type in ('iexact', 'icontains', 'istartswith',
'iendswith'):
format = '%s::text %s'
if connection.needs_upper_for_iops:
format = 'UPPER(%s::text) %s'
else:
format = '%s %s'
On 14 Лют, 12:29, sector119 <[EMAIL PROTECTED]> wrote:
> Due to subject it's not longer possible to use iexact, icontains,
> istartswith, iendswith lookup_type in lookup type with int4, int8, ...
> filed types!
>
> May be we have to add something like this to the db/models/query.py
> get_where_clause:
>
> if lookup_type in ('iexact', 'icontains', 'istartswith', 'iendswith'):
> format = '%s::text %s'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---