Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(spanner): allow untyped nil values in parameterized queries (#4482)
* feat(spanner): Allow untyped nil values in params Removes the restriction that nil valued parameters must be typed. The current restriction prevents the usage of DML statements with one or more untyped nil parameter values to be used to insert/update a value to NULL. Cloud Spanner does not require all parameters to be typed, only when it would otherwise be ambigous what type should be used (e.g. non-NULL STRING/BYTES values). This restriction also prevents the usage of the go/sql driver with gorm, as gorm will generate statements with untyped nil parameter values. Fixes #4481 * fix: skip DML test on emulator Skip testing DML with untyped parameters on the emulator as it does not support untyped parameters. See GoogleCloudPlatform/cloud-spanner-emulator#31 * fix: add missing !
- Loading branch information
Showing
3 changed files
with
64 additions
and
31 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
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