-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(grammar): Avoid ambiguity between "/" as the division operator an…
…d "/" as a SQL*Plus command Example: "select * from dual where 1 = 1 / define var" This is a SELECT_EXPRESSION, EXECUTE_PLSQL_BUFFER and SQLPLUS_COMMAND (DEFINE), but it was parsed as a SELECT_EXPRESSION with the operation "1 / define"
- Loading branch information
Showing
5 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
...checks/src/integrationTest/resources/expected/pljson/ColumnsShouldHaveTableNameCheck.json
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,7 @@ | ||
{ | ||
"examples/ex_pljson_table.sql" : [ | ||
151, | ||
165, | ||
189 | ||
] | ||
} |
4 changes: 3 additions & 1 deletion
4
...es/expected/pljson/ParsingErrorCheck.json → ...ted/pljson/InsertWithoutColumnsCheck.json
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"examples/ex_pljson_table.sql" : [ | ||
200 | ||
41, | ||
53, | ||
65 | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
zpa-checks/src/integrationTest/resources/expected/pljson/SelectAllColumnsCheck.json
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,8 @@ | ||
{ | ||
"examples/ex_pljson_table.sql" : [ | ||
129, | ||
224, | ||
249, | ||
294 | ||
] | ||
} |
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