-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spanner/spansql: add parser for all forms of string and bytes literal
It removes TODO at https://github.com/googleapis/google-cloud-go/blob/511b7f3f2624e2d3c4bf2697da4ab69ed5359aac/spanner/spansql/parser.go#L311 Also, it adds BytesLiteral type, and basic support to this in spanner/spannertest. See tests to check supported syntax in detail. Note that a new consumeStringContent function is currently used only for parse string and bytes literals, however it is designed to parse backquoted identifier also. Change-Id: Icbe4c72b82f89378a9fc0d629a2a511ca5ea18bc Reviewed-on: https://code-review.googlesource.com/c/gocloud/+/44490 Reviewed-by: kokoro <noreply+kokoro@google.com> Reviewed-by: David Symonds <dsymonds@golang.org> Reviewed-by: Knut Olav Løite <koloite@gmail.com>
- Loading branch information
Showing
8 changed files
with
330 additions
and
30 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
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
Oops, something went wrong.