-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plpgsql/parser: fix parsing for escaped strings
This commit adds support for scanning an escaped string constant in a PL/pgSQL routine. This is necessary because escaped strings have imbalanced quotes (like `e'foobar''`), which previously caused the scanner to return an "unterminated string" error. Informs #106368 Release note (bug fix): Fixed a bug that could result in a syntax error if a PL/pgSQL routine was created with an escaped string constant in the routine body. This bug has existed since v23.2.
- Loading branch information
1 parent
83d7ea8
commit 2a423d8
Showing
2 changed files
with
46 additions
and
21 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