On Thu, 2008-02-14 at 02:29 -0800, sector119 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'

Could you open a ticket for this please so that it isn't forgotten.

I suspect that, rather than your solution, we'll probably just drop
those lookup types general comparison when they are used against
non-text fields (and raise errors for things like "contains" when used
with non-text fields). It doesn't make a lot of sense to do partial
string matches against non-strings. However, that's just my immediate
thought and I might change my mind later after thinking about it more or
being beaten about the head and shoulders by some other maintainer.

Anyway, if you can make sure we've logged this in Trac, that would be a
great help.

Thanks,
Malcolm

-- 
Honk if you love peace and quiet. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to