On Oct 26, 10:23 pm, Richard <richar...@gmail.com> wrote:
> I am also wondering this. Apparently there is a hack to match a
> prefix, but not a general solution:
>
> http://code.google.com/appengine/docs/python/datastore/queriesandinde...
> """
> Query filters do not have an explicit way to match just part of a
> string value, but you can fake a prefix match using inequality
> filters:
>
> db.GqlQuery("SELECT * FROM MyModel WHERE prop >= :1 AND prop < :2",
> "abc", u"abc" + u"\ufffd")
>
> This matches every MyModel entity with a string property prop that
> begins with the characters abc. The unicode string u"\ufffd"
> represents the largest possible Unicode character. When the property
> values are sorted in an index, the values that fall in this range are
> all of the values that begin with the given prefix.
> """
>
> How does the DAL support LIKE on GAE?

It does not.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to