GQL: SELECT WHERE NULL

12 views
Skip to first unread message

Alf Eaton

unread,
Jun 6, 2008, 8:12:08 AM6/6/08
to Google App Engine
I'm trying to query a datastore to find all the objects where a
particular field is empty, but
'SELECT * FROM Item WHERE field IS NULL"
produces an "Invalid GQL query string" error.

What should the syntax be for this kind of query?

Mahmoud

unread,
Jun 6, 2008, 10:53:32 AM6/6/08
to Google App Engine
Check out this thread:
http://groups.google.com/group/google-appengine/browse_thread/thread/48888823fd3faa3b

You'll have to think of a different way to do this.

Gadi

unread,
Jun 6, 2008, 7:19:13 PM6/6/08
to Google App Engine
you should use:
db.GqlQuery ("SELECT * FROM model WHERE property=:1",None)

None is the python Null
Reply all
Reply to author
Forward
0 new messages