-
Notifications
You must be signed in to change notification settings - Fork 887
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pgtype array: Fix encoding of vtab \v
Arrays with values that start or end with vtab ("\v") must be quoted. Postgres's array parser skips leading and trailing whitespace with the array_isspace() function, which is slightly different from the scanner_isspace() function that was previously linked. Add a test that reproduces this failure, and fix the definition of isSpace. This also includes a change to use strings.EqualFold which should really not matter, but does not require copying the string.
- Loading branch information
Showing
2 changed files
with
33 additions
and
19 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