Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: service/datastore/query.go

Issue 1892343002: Add __namespace__ metadata query support to impl/memory. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Add comment Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « impl/memory/datastore_query_execution_test.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/query.go
diff --git a/service/datastore/query.go b/service/datastore/query.go
index 2e60b90cda8e90ce8fe0b95f88a21635cd6d3dcd..8c15f9b5a57a64d08275a448f91a09fed281ec1d 100644
--- a/service/datastore/query.go
+++ b/service/datastore/query.go
@@ -569,6 +569,11 @@ func (q *Query) Finalize() (*FinalizedQuery, error) {
ineqFiltHighIncl: q.ineqFiltHighIncl,
ineqFiltHighSet: q.ineqFiltHighSet,
}
+ // If a starting cursor is provided, ignore the offset, as it would have been
+ // accounted for in the query that produced the cursor.
+ if ret.start != nil {
+ ret.offset = nil
+ }
if q.project != nil {
ret.project = q.project.ToSlice()
« no previous file with comments | « impl/memory/datastore_query_execution_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698