OpenSearch/x-pack/plugin/sql/qa
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
..
multi-node Define constants for REST requests endpoints in tests (#37610) 2019-01-22 10:01:51 +02:00
security SQL: introduce the columnar option for REST requests (#39287) 2019-02-27 09:37:28 +02:00
single-node SQL: Spec tests now use classpath discovery (#40388) 2019-03-25 15:22:52 +02:00
src/main SQL: Fix getTime() methods in JDBC (#40484) 2019-03-27 17:14:08 +01:00
build.gradle SQL: JLine upgrade and polishing (#40321) 2019-03-22 23:55:51 +02:00