-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: don't include quotes in parsed strings
The planner.TypeAsString* helpers, currently only really used in backup/restore/import, were using parser.AsStringWithFlags to get the string value of the expr they retured. However even in 'bareStrings' mode, this still prints non-trivial strings *in quotes*. If calling code is planning to use the value of the string, for instance as a URI or parameter value, mangling it with added quotes is almost certainly not desired. These helpers are used to read params from a query for processing, not print parsable SQL.
- Loading branch information
Showing
3 changed files
with
22 additions
and
9 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