-
Notifications
You must be signed in to change notification settings - Fork 2.4k
In JOB_PARAMS table DATE_VAL column is updated incorrectly Like "1/1/1970 1:00:00.000000 AM" instead to the current date. [BATCH-2015] #1577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Lucas Ward commented Sonali, Can you provide more details? What Database are you using? And at what version? My gut reaction is that some databases will save 'epoch' rather than null. Unless somehow new Date(0) was saved as a parameter? |
Jimmy Praet commented The job parameters are actually being persisted with these default values, even though the columns are nullable in the database: DATE_VAL = new java.sql.Timestamp(0L) See JdbcJobExecutionDao.insertParameter(Long, ParameterType, String, Object, boolean) |
Michael Minella commented Just to confirm, the title of this issue states that you're expecting the current date. I'm thinking that it should be null instead of epoch when the parameter type is not a date. Is there a reason not to go this route? |
I agree with Michael, |
Sonali Singhal opened BATCH-2015 and commented
Affects: 2.1.8
0 votes, 5 watchers
The text was updated successfully, but these errors were encountered: