Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spanner: String() should return unquoted string
The String() method of NullString, NullTime and NullDate should all return unquoted strings, instead of adding double quotes around the returned value. This makes it easier to use the values in standard methods that expect a Stringer, as the returned value corresponds to the actual underlying value. Updates #1610. Change-Id: I20b6d5d25ee8b9325e6f64336dca6b89a2d396db Reviewed-on: https://code-review.googlesource.com/c/gocloud/+/47192 Reviewed-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Shanika Kuruppu <skuruppu@google.com> Reviewed-by: Jean de Klerk <deklerk@google.com>
- Loading branch information
Showing
2 changed files
with
57 additions
and
11 deletions.
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