-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
datastore: allow flatten tag on struct pointers
Previously, if a struct had a field marked with the `flatten` tag the type could not be a pointer to a struct. It would fail with the following error when loading: datastore: cannot load field "x.x" into a "y.y": no such struct field This CL fixes this by checking for a pointer type in loadOneElement. Relvant issue: #1296 Change-Id: I6de60b76b46bcbde20a0c2ad8574e7ee18758e56 Reviewed-on: https://code-review.googlesource.com/c/38550 Reviewed-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Jean de Klerk <deklerk@google.com>
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters