OpenSearch/x-pack/plugin/sql/jdbc
Marios Trivyzas 143db10980
SQL: Fix issue timezone issues with JDBC getDate/getTime (#40360)
Previously, `getDate(int columnIdx)/getDate(String columnLabel)` and
were using legacy`java.util.Calendar` instead of the the `java.time.*`
classes to reset to the start of day. This resulted in different results 
for certain timestamps and timezones when calling
`getDate(col)` vs`getObject(col, java.sql.Date)`

Now only the methods (that must be implemented due to the JDBC spec)
`getDate(int columnIdx, Calendar cal)/getDate(String columnLabel, Calendar cal)`
are still using the `java.util.Calendar` for those conversion.

The same change was applied to
`getTime(int columnIdx)/getTime(String columnLabel)`
and
`getTimestamp(int columnIdx)/getTimestamp(String columnLabel)`

Fixes: #40289

(cherry picked from commit 44560671f18397e0c58e3647732880fcb73a5034)
2019-03-23 17:01:08 +01:00
..
licenses CORE: Upgrade to Jackson 2.8.11 (#32670) 2018-08-08 12:04:25 +02:00
src SQL: Fix issue timezone issues with JDBC getDate/getTime (#40360) 2019-03-23 17:01:08 +01:00
build.gradle SQL: enforce JDBC driver - ES server version parity (#38972) 2019-02-20 11:29:02 +02:00