OpenSearch/x-pack/plugin/sql/jdbc
Marios Trivyzas 8e049c5f58
SQL: Fix getTime() methods in JDBC (#40484)
Previously, `getTime(colIdx/colLabel)` and
`getObject(colIdx/colLabel, java.sql.Time.class)` methods were computing
the time from a `ZonedDateTime` by applying day in millis modulo on the epoch millis
of the `ZonedDateTime` object. This is wrong as we need to keep the time
related fields at the timezone of the `ZonedDateTime` object and just
set the date info to the epoch date (01/01/1970).

Additionally fixes a testing issue as the original timezone id is converted
to an offset string when parsing the response from the server.
2019-03-27 17:14:08 +01:00
..
licenses CORE: Upgrade to Jackson 2.8.11 (#32670) 2018-08-08 12:04:25 +02:00
src SQL: Fix getTime() methods in JDBC (#40484) 2019-03-27 17:14:08 +01:00
build.gradle SQL: enforce JDBC driver - ES server version parity (#38972) 2019-02-20 11:29:02 +02:00