1.1 --- a/PLSQL/Execution/src/org/netbeans/modules/plsql/execution/actions/DeploySelectedCodeAction.java Tue May 21 12:45:08 2013 +0200
1.2 +++ b/PLSQL/Execution/src/org/netbeans/modules/plsql/execution/actions/DeploySelectedCodeAction.java Wed May 22 16:22:11 2013 +0530
1.3 @@ -203,6 +203,9 @@
1.4 String output = "";
1.5 connection = (DatabaseConnection) item.getClientProperty(DATABASE_CONNECTION_KEY);
1.6 DatabaseConnectionManager connectionProvider = DatabaseConnectionManager.getInstance(project);
1.7 + if (connection.getJDBCConnection() == null) {
1.8 + connectionProvider.connect(connection);
1.9 + }
1.10 EditorCookie editorCookie = activatedNodes[0].getLookup().lookup(EditorCookie.class);
1.11 try {
1.12 output = replaceAliases(getSelection(editorCookie), dataObject.getLookup().lookup(PlsqlBlockFactory.class), '&');