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:
Anssi Hannula
2015-01-10 03:44:51 +02:00
parent f76a780d50
commit 6be1f624b9
+1 -1
View File
@@ -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)