Removed changers from - Select statements that contains CASE statements don't execute
authorSubhashini Sooriarachchi <subslk@netbeans.org>
Fri, 17 May 2013 12:53:09 +0530
changeset 401b82d3dc958ae
parent 400 183a12deacb1
child 402 cb020c7e10a6
Removed changers from - Select statements that contains CASE statements don't execute
PLSQL/Lexer/src/org/netbeans/modules/plsql/lexer/PlsqlBlockFactory.java
     1.1 --- a/PLSQL/Lexer/src/org/netbeans/modules/plsql/lexer/PlsqlBlockFactory.java	Thu May 16 15:00:34 2013 +0200
     1.2 +++ b/PLSQL/Lexer/src/org/netbeans/modules/plsql/lexer/PlsqlBlockFactory.java	Fri May 17 12:53:09 2013 +0530
     1.3 @@ -393,7 +393,7 @@
     1.4          boolean getName = true;
     1.5          Token<PlsqlTokenId> customStartToken = null;
     1.6          String name = current.text().toString();
     1.7 -        boolean endBlock = false;
     1.8 +
     1.9          while (moveNext) {
    1.10              String image = token.text().toString();
    1.11              PlsqlTokenId tokenID = token.id();
    1.12 @@ -405,7 +405,6 @@
    1.13              if (image.equals(";") || (image.equals("/") && checkForOnlyChar(ts, ts.offset()))) {
    1.14                  block = new PlsqlBlock(stmtBegin.offset(tokenHierarchy), token.offset(tokenHierarchy), name.trim(), "", PlsqlBlockType.STATEMENT);
    1.15                  checkPrefix(stmtBegin.offset(tokenHierarchy), ts, block);
    1.16 -                endBlock = true;
    1.17                  break;
    1.18              } else if (image.equalsIgnoreCase("CREATE")
    1.19                      || image.equalsIgnoreCase("DECLARE")
    1.20 @@ -472,11 +471,6 @@
    1.21              moveNext = ts.moveNext();
    1.22              token = ts.token();
    1.23          }
    1.24 -        
    1.25 -        if(!endBlock){
    1.26 -            block = new PlsqlBlock(stmtBegin.offset(tokenHierarchy), token.offset(tokenHierarchy), name.trim(), "", PlsqlBlockType.STATEMENT);
    1.27 -            checkPrefix(stmtBegin.offset(tokenHierarchy), ts, block);
    1.28 -        }
    1.29  
    1.30          if (block != null) {
    1.31              //add children