SQL Command window "breaks" if the network connection is lost. release701
authorSubhashini Sooriarachchi <subslk@netbeans.org>
Mon, 30 Jan 2012 09:29:43 +0530
branchrelease701
changeset 144444c98606a05
parent 143 b4d55cd6270c
child 145 7b981b53d2ab
SQL Command window "breaks" if the network connection is lost.
PLSQL/Execution/src/org/netbeans/modules/plsql/execution/PlsqlExecuteAction.java
     1.1 --- a/PLSQL/Execution/src/org/netbeans/modules/plsql/execution/PlsqlExecuteAction.java	Thu Jan 26 16:28:44 2012 +0100
     1.2 +++ b/PLSQL/Execution/src/org/netbeans/modules/plsql/execution/PlsqlExecuteAction.java	Mon Jan 30 09:29:43 2012 +0530
     1.3 @@ -281,6 +281,11 @@
     1.4                      return;
     1.5                  }
     1.6              }
     1.7 +        } else {
     1.8 +            //to reconnect if the connection is gone. 
     1.9 +            if (connection.getJDBCConnection() == null) {
    1.10 +                connectionProvider.connect(connection);
    1.11 +            }
    1.12          }
    1.13  
    1.14          //if the user has selected any text in the window, create exec block using selected text only