Hi ,
I was debugging an issue related to a custom report developed a long time back by some other person.
The report is designed using StatementClass and ResultSet class to make use of SQL querying abilities since there is a large chunk of data that needs to be considered. I completely against usage of SQL and using Statement and s

The conversion highlighted in green (any2date(resultSet.getString(32));) returns a valid date when the report is executed to screen. The class extends SrsReportDataProviderPreProcessedTempDB , so when run to screen it uses the current interactive session to execute the date provider.
So far so good.
But when the same code is executed in batch this conversion returns default date 1/1/1900
My question is whether there is an ambiguity in using any2date function when run in batch and when run on client. Please provide you thoughts on this.
"Please note that resultSet.getDate(int columnIndex) will resolve the issue. I am not asking for resolution using different conversions functions either , My question is any2Date function does it behave differently when run on client and when run on batch, or is it just one such weird occurrence"
*This post is locked for comments
I have the same question (0)