-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added correct parse of IS [NOT] NULL
fixed crash of parsing following code (from unittest): IF V_BUF IS NULL THEN null; end if;
- Loading branch information
Showing
4 changed files
with
54 additions
and
1 deletion.
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
16 changes: 16 additions & 0 deletions
16
pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/ast/IsNull.pls
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,16 @@ | ||
PROCEDURE IsNull ( | ||
dummy IN number | ||
) | ||
is | ||
V_BUF varchar(1); | ||
BEGIN | ||
|
||
IF V_BUF IS NULL THEN | ||
null; | ||
end if; | ||
|
||
IF V_BUF IS NOT NULL THEN | ||
null; | ||
end if; | ||
|
||
end; |