-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(parser): use v2 parser for cast/extract/substring/position/o…
…verlay (#17053) Signed-off-by: TennyZhuang <[email protected]>
- Loading branch information
1 parent
db27ab9
commit ab04031
Showing
5 changed files
with
169 additions
and
127 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This file is automatically generated by `src/sqlparser/tests/parser_test.rs`. | ||
- input: SELECT EXTRACT(0 FROM d) | ||
error_msg: |- | ||
sql parser error: expected date/time field | ||
LINE 1: SELECT EXTRACT(0 FROM d) | ||
^ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This file is automatically generated by `src/sqlparser/tests/parser_test.rs`. | ||
- input: SELECT OVERLAY('abc' PLACING 'xyz' FROM 1) | ||
formatted_sql: SELECT OVERLAY('abc' PLACING 'xyz' FROM 1) | ||
- input: SELECT OVERLAY('abc' PLACING 'xyz' FROM 1 FOR 2) | ||
formatted_sql: SELECT OVERLAY('abc' PLACING 'xyz' FROM 1 FOR 2) | ||
- input: SELECT OVERLAY('abc', 'xyz') | ||
error_msg: "sql parser error: \nLINE 1: SELECT OVERLAY('abc', 'xyz')\n ^" | ||
- input: SELECT OVERLAY('abc' PLACING 'xyz') | ||
error_msg: "sql parser error: \nLINE 1: SELECT OVERLAY('abc' PLACING 'xyz')\n ^" | ||
- input: SELECT OVERLAY('abc' PLACING 'xyz' FOR 2) | ||
error_msg: "sql parser error: \nLINE 1: SELECT OVERLAY('abc' PLACING 'xyz' FOR 2)\n ^" | ||
- input: SELECT OVERLAY('abc' PLACING 'xyz' FOR 2 FROM 1) | ||
error_msg: "sql parser error: \nLINE 1: SELECT OVERLAY('abc' PLACING 'xyz' FOR 2 FROM 1)\n ^" |