OpenSearch/x-pack/plugin/sql
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
..
jdbc SQL: Fix getTime() methods in JDBC (#40484) 2019-03-27 17:14:08 +01:00
qa SQL: Fix getTime() methods in JDBC (#40484) 2019-03-27 17:14:08 +01:00
sql-action SQL: Add multi_value_field_leniency inside FieldHitExtractor (#40113) 2019-03-18 14:56:03 +02:00
sql-cli SQL: JLine upgrade and polishing (#40321) 2019-03-22 23:55:51 +02:00
sql-client SQL: JLine upgrade and polishing (#40321) 2019-03-22 23:55:51 +02:00
sql-proto SQL: JLine upgrade and polishing (#40321) 2019-03-22 23:55:51 +02:00
src SQL: Polish parsing of CAST expression (#40428) 2019-03-27 12:20:58 +02:00
build.gradle SQL: JLine upgrade and polishing (#40321) 2019-03-22 23:55:51 +02:00