GoogleSQLAdapter: Fix NDB orderby without limitby broken in 2.9.6
Commit 8d648f6137 ("restore beahvior in gae that if no limitby,
returns iterator") made select_raw() store the query iterator in a
wrong variable ("rows", which is unused, should be "items"), causing
unsorted results to be returned.
Fix the assignment.
This commit is contained in:
@@ -507,7 +507,7 @@ class GoogleDatastoreAdapter(NoSQLAdapter):
|
||||
db['_lastcursor'] = cursor
|
||||
else:
|
||||
# if a limit is not specified, always return an iterator
|
||||
rows = query
|
||||
items = query
|
||||
|
||||
return (items, tablename, projection or db[tablename].fields)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user