Select and Execute single statements without ";" gives invalid character exception release701
authorSubhashini Sooriarachchi <subslk@netbeans.org>
Mon, 30 Jul 2012 11:37:50 +0530
branchrelease701
changeset 267ca5bfd0dfcaa
parent 263 c273c828c116
child 268 0818f6b69b15
Select and Execute single statements without ";" gives invalid character exception
PLSQL/Execution/src/org/netbeans/modules/plsql/execution/PlsqlExecuteAction.java
     1.1 --- a/PLSQL/Execution/src/org/netbeans/modules/plsql/execution/PlsqlExecuteAction.java	Wed Jul 25 13:49:33 2012 +0200
     1.2 +++ b/PLSQL/Execution/src/org/netbeans/modules/plsql/execution/PlsqlExecuteAction.java	Mon Jul 30 11:37:50 2012 +0530
     1.3 @@ -337,6 +337,9 @@
     1.4                      }
     1.5                      if (!newblocks.isEmpty()) {
     1.6                          blocks = newblocks;
     1.7 +                    }else {
     1.8 +                        blocks = new ArrayList<PlsqlExecutableObject>();
     1.9 +                        blocks.add(new PlsqlExecutableObject(0, selectedSql, "SQL", PlsqlExecutableObjectType.STATEMENT, 0, selectedSql.length() - 1));
    1.10                      }
    1.11                  }else if (OptionsUtilities.isCommandWindowAutoSelectEnabled()) {
    1.12                      List<PlsqlExecutableObject> newblocks = new ArrayList<PlsqlExecutableObject>();