RESOLVED - BATCH-595: Incorrect JDBC type for job parameters of long type

used Types.BIGINT instead of Types.INTEGER for Long values
This commit is contained in:
robokaso
2008-04-22 11:24:49 +00:00
parent 1c8df0d5f5
commit 75111fbe01
2 changed files with 21 additions and 6 deletions

View File

@@ -136,8 +136,8 @@ public class JdbcJobInstanceDao extends AbstractJdbcBatchMetadataDao implements
private void insertParameter(Long jobId, ParameterType type, String key, Object value) {
Object[] args = new Object[0];
int[] argTypes = new int[] { Types.INTEGER, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.TIMESTAMP,
Types.INTEGER, Types.DOUBLE };
int[] argTypes = new int[] { Types.BIGINT, Types.VARCHAR, Types.VARCHAR, Types.VARCHAR, Types.TIMESTAMP,
Types.BIGINT, Types.DOUBLE };
if (type == ParameterType.STRING) {
args = new Object[] { jobId, key, type, value, new Timestamp(0L), new Long(0), new Double(0) };