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

Unified Diff: service/datastore/key.go

Issue 1550903002: impl/memory: Fix time serialization encoding. (Closed) Base URL: https://github.com/luci/gae@master
Patch Set: Comments, tune-up. Created 4 years, 12 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') | service/datastore/pls_impl.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/key.go
diff --git a/service/datastore/key.go b/service/datastore/key.go
index 227858858bc76da9850d0ecb019ca1ed6eac8320..2071bfb7b2ad01ceed9c42592d5d6ba01fb6b053 100644
--- a/service/datastore/key.go
+++ b/service/datastore/key.go
@@ -37,9 +37,9 @@ func (k KeyTok) Special() bool {
// ID returns the 'active' id as a Property (either the StringID or the IntID).
func (k KeyTok) ID() Property {
if k.StringID != "" {
- return Property{value: k.StringID, propType: PTString}
+ return MkProperty(k.StringID)
}
- return Property{value: k.IntID, propType: PTInt}
+ return MkProperty(k.IntID)
}
// Less returns true iff k would sort before other.
« no previous file with comments | « impl/memory/datastore_query_execution_test.go ('k') | service/datastore/pls_impl.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698