|
|
|
@ -123,19 +123,21 @@ public class SqlTask extends AbstractTask {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
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){ |
|
|
|
|
logger.error("datasource not exists"); |
|
|
|
|
exitStatusCode = -1; |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
logger.info("datasource name : {} , type : {} , desc : {} , user_id : {} , parameter : {}", |
|
|
|
|
dataSource.getName(), |
|
|
|
|
dataSource.getType(), |
|
|
|
|
dataSource.getNote(), |
|
|
|
|
dataSource.getUserId(), |
|
|
|
|
dataSource.getConnectionParams()); |
|
|
|
|
|
|
|
|
|
Connection con = null; |
|
|
|
|
List<String> createFuncs = null; |
|
|
|
|
try { |
|
|
|
|