spanner: Different behavior between string and spanner.NullString when unmarshal from json #5259
Labels
api: spanner
Issues related to the Spanner API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Client
Spanner
Environment
Local
Go Environment
$ go version
go version go1.17.2 darwin/amd64
$ go env
Code
Expected behavior
Output:
Actual behavior
Additional context
google-cloud-go/spanner/value.go
Line 289 in 70e40db
Seems that the code didn't handle this case and will have different behavior between string and spanner.NullString when unmarshal from json and some escape characters is in the string.
The text was updated successfully, but these errors were encountered: