|
|
@ -123,19 +123,21 @@ public class SqlTask extends AbstractTask { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
dataSource= processDao.findDataSourceById(sqlParameters.getDatasource()); |
|
|
|
dataSource= processDao.findDataSourceById(sqlParameters.getDatasource()); |
|
|
|
logger.info("datasource name : {} , type : {} , desc : {} , user_id : {} , parameter : {}", |
|
|
|
|
|
|
|
dataSource.getName(), |
|
|
|
|
|
|
|
dataSource.getType(), |
|
|
|
|
|
|
|
dataSource.getNote(), |
|
|
|
|
|
|
|
dataSource.getUserId(), |
|
|
|
|
|
|
|
dataSource.getConnectionParams()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// data source is null
|
|
|
|
if (dataSource == null){ |
|
|
|
if (dataSource == null){ |
|
|
|
logger.error("datasource not exists"); |
|
|
|
logger.error("datasource not exists"); |
|
|
|
exitStatusCode = -1; |
|
|
|
exitStatusCode = -1; |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logger.info("datasource name : {} , type : {} , desc : {} , user_id : {} , parameter : {}", |
|
|
|
|
|
|
|
dataSource.getName(), |
|
|
|
|
|
|
|
dataSource.getType(), |
|
|
|
|
|
|
|
dataSource.getNote(), |
|
|
|
|
|
|
|
dataSource.getUserId(), |
|
|
|
|
|
|
|
dataSource.getConnectionParams()); |
|
|
|
|
|
|
|
|
|
|
|
Connection con = null; |
|
|
|
Connection con = null; |
|
|
|
List<String> createFuncs = null; |
|
|
|
List<String> createFuncs = null; |
|
|
|
try { |
|
|
|
try { |
|
|
|