SCT-66 Fix for Task_Execution error

Sets the argType for the task_execution_id in the Task_Execution_params to be a BIGINT (vs the VARCHAR)

spring-cloud/spring-cloud-task#66
This commit is contained in:
Glenn Renfro
2016-01-21 11:51:54 -05:00
committed by Thomas Risberg
parent 2ceb353838
commit c336bea0d2

View File

@@ -298,7 +298,7 @@ public class JdbcTaskExecutionDao implements TaskExecutionDao {
* TASK_EXECUTION_PARAMS table.
*/
private void insertParameter(long executionId, String param) {
int[] argTypes = new int[]{ Types.VARCHAR, Types.VARCHAR };
int[] argTypes = new int[]{ Types.BIGINT, Types.VARCHAR };
Object[] args = new Object[]{ executionId, param };
jdbcTemplate.update(getQuery(CREATE_TASK_PARAMETER), args, argTypes);
}