Skip to content

Commit

Permalink
not worked migration when plsql with case statement
Browse files Browse the repository at this point in the history
  • Loading branch information
codicuz committed Dec 18, 2019
1 parent aa8c9b1 commit 416b5d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ protected void adjustBlockDepth(ParserContext context, List<Token> tokens, Token
String keywordText = keyword.getText();
int parensDepth = keyword.getParensDepth();

if ("BEGIN".equals(keywordText) || "CASE".equals(keywordText)
|| (("IF".equals(keywordText) || "LOOP".equals(keywordText)) && !containsWithinLast(1, tokens, parensDepth, "END"))
if ("BEGIN".equals(keywordText) || (("IF".equals(keywordText)
|| "CASE".equals(keywordText) || "LOOP".equals(keywordText)) && !containsWithinLast(1, tokens, parensDepth, "END"))
|| ("TRIGGER".equals(keywordText) && containsWithinLast(1, tokens, parensDepth, "COMPOUND"))
|| (("AS".equals(keywordText) || "IS".equals(keywordText)) && (
containsWithinLast(4, tokens, parensDepth, "PACKAGE")
Expand Down

0 comments on commit 416b5d5

Please sign in to comment.