File tree 1 file changed +3
-5
lines changed
spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,9 @@ public class JdbcStepExecutionDao extends AbstractJdbcBatchMetadataDao implement
105
105
"STEP_EXECUTION_ID=?" ;
106
106
107
107
private static final String COUNT_STEP_EXECUTIONS = "SELECT COUNT(*) " +
108
- " from %PREFIX%JOB_EXECUTION JE, %PREFIX%STEP_EXECUTION SE" +
109
- " where " +
110
- " SE.JOB_EXECUTION_ID in (SELECT JOB_EXECUTION_ID from %PREFIX%JOB_EXECUTION " +
111
- "where JOB_INSTANCE_ID = ?)" +
112
- " and SE.JOB_EXECUTION_ID = JE.JOB_EXECUTION_ID " +
108
+ " from %PREFIX%JOB_EXECUTION JE JOIN %PREFIX%STEP_EXECUTION SE " +
109
+ " on SE.JOB_EXECUTION_ID = JE.JOB_EXECUTION_ID " +
110
+ "where JE.JOB_INSTANCE_ID = ?" +
113
111
" and SE.STEP_NAME = ?" ;
114
112
115
113
private int exitMessageLength = DEFAULT_EXIT_MESSAGE_LENGTH ;
You can’t perform that action at this time.
0 commit comments