Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-dev] Bug 387491 - Three JUnitJPQLDateTimeTestSuite tests fail with Oracle jdbc 12.1 driver

Checked the updated patch into both trunk (2.5) and 2.4 streams.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=387491

Updating this bug fix as requested by James.
Truncating every sql.Date before passing it to Statement.setDate would cause some performance deterioration, therefore instead of automatically enabling it, data truncation is disabled by default, could be explicitly enabled by the user by calling: oracle9Platform.setShouldTruncateDate(true);

Also made date truncation a bit more efficient: only one calendar is created and milliseconds are ignored (i.e. date without hours, minutes and seconds, but with milliseconds would not be truncated) - 12.1 driver still truncates milliseconds.

Thanks,
Andrei


Back to the top