Hi all,

I'm wondering if someone else have seen this before and has any ideas
what could lead to this completely confusing behavior


class Content(Model):
  uri = db.URLProperty(required=True)
  content_type = db.IntegerProperty(required=True, choices=[1, 2, 3,
4, 5,6,7,10, -1])
  title = db.StringProperty()

uri=u'http://basho.com/blog/technical/2011/09/19/Riak-Pipe-The-New-Map-
Reduce-Power'
results = Content.all().filter('uri = ', uri).fetch(5)
for c in results:
  print "'%s'" % c.uri

=> returns no results

while changing the filter to use greater than:

uri=u'http://basho.com/blog/technical/2011/09/19/Riak-Pipe-The-New-Map-
Reduce-Power'
results = Content.all().filter('uri >= ', uri).fetch(5)
for c in results:
  print "'%s'" % c.uri

=> returns:

'http://basho.com/blog/technical/2011/09/19/Riak-Pipe-The-New-Map-
Reduce-Power/'
'http://basho.com/blog/technical/2011/09/19/Riak-Pipe-The-New-Map-
Reduce-Power/'
'http://basho.com/blog/technical/2011/09/19/Riak-Pipe-The-New-Map-
Reduce-Power/'

I've been staring at this code for the last 30 minutes and I cannot
understand what's wrong with it, except maybe some broken internal
index.

Or am I missing something?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en.

Reply via email to