Is owner a db.IntegerProperty? If it's a StringProperty, it will need to be quoted in the GQL.
Also, that sort of construction of GQL is almost asking for someone to invent GQL injection attacks... On Sep 27, 2:47 am, Droid <[email protected]> wrote: > Why doesn't this work: (it cannot get variable owny correctly) > > owny = > '8888' > rotal = db.GqlQuery("SELECT * FROM MyWords WHERE owner = "+owny+" > LIMIT 100") > > Above code works in most languages, but not Python seemingly. > It simply does not insert 8888 into my Select statement. Easy I know, > but how do I do this? > > I have tried all the simple things but must be 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.
