开发者

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

开发者 https://www.devze.com 2023-03-04 14:53 出处:网络
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.

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

精彩评论

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