@ -363,20 +363,20 @@ public class SqlTask extends AbstractTask {
// is the timeout set
// is the timeout set
boolean timeoutFlag = taskProps . getTaskTimeoutStrategy ( ) = = TaskTimeoutStrategy . FAILED | |
boolean timeoutFlag = taskProps . getTaskTimeoutStrategy ( ) = = TaskTimeoutStrategy . FAILED | |
taskProps . getTaskTimeoutStrategy ( ) = = TaskTimeoutStrategy . WARNFAILED ;
taskProps . getTaskTimeoutStrategy ( ) = = TaskTimeoutStrategy . WARNFAILED ;
try ( PreparedStatement stmt = connection . prepareStatement ( sqlBinds . getSql ( ) ) ) {
// prepare statement
if ( timeoutFlag ) {
PreparedStatement stmt = connection . prepareStatement ( sqlBinds . getSql ( ) ) ;
stmt . setQueryTimeout ( taskProps . getTaskTimeout ( ) ) ;
if ( timeoutFlag ) {
}
stmt . setQueryTimeout ( taskProps . getTaskTimeout ( ) ) ;
Map < Integer , Property > params = sqlBinds . getParamsMap ( ) ;
}
if ( params ! = null ) {
Map < Integer , Property > params = sqlBinds . getParamsMap ( ) ;
for ( Map . Entry < Integer , Property > entry : params . entrySet ( ) ) {
if ( params ! = null ) {
Property prop = entry . getValue ( ) ;
for ( Map . Entry < Integer , Property > entry : params . entrySet ( ) ) {
ParameterUtils . setInParameter ( entry . getKey ( ) , stmt , prop . getType ( ) , prop . getValue ( ) ) ;
Property prop = entry . getValue ( ) ;
}
ParameterUtils . setInParameter ( entry . getKey ( ) , stmt , prop . getType ( ) , prop . getValue ( ) ) ;
}
}
logger . info ( "prepare statement replace sql : {} " , stmt ) ;
return stmt ;
}
}
logger . info ( "prepare statement replace sql : {} " , stmt ) ;
return stmt ;
}
}
/ * *
/ * *