开发者

gql error: BadQueryError: Parse Error: Invalid ORDER BY Property at symbol :3

I'm getting this error:

Parse Error: Invalid ORDER BY Property at symbol :3

Can't see what is causing it, if I remove the substitution and add "date" it works.

order = "date"
playlists开发者_运维百科_data = db.GqlQuery('SELECT * FROM Playlist WHERE 
                              client = :1 AND 
                              category = :2 
                              ORDER BY :3 DESC', client, category, order)


ORDER BY doesn't support bound parameters.

They can only be used in a WHERE clause, and only to replace property values, not property names.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜