[CONJ-699] Value range of TIME data type not fully supported Created: 2019-04-17 Updated: 2021-05-17 Resolved: 2021-05-17 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | JDBC 4.2 compatibility |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Renat Golubchyk | Assignee: | Diego Dupin |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
MariaDB Connector/J uses java.sql.Time for TIME columns. TIME columns have a range of '-838:59:59.999999' to '838:59:59.999999'. According to Java documentation "java.sql.Time is a thin wrapper around java.util.Date":
That means Connector/J supports only a tiny subset of possible values. How to reproduce:
|
| Comments |
| Comment by Diego Dupin [ 2019-09-13 ] | ||||||
|
java.sql.Time is limited to 0-24h
| ||||||
| Comment by Diego Dupin [ 2021-05-17 ] | ||||||
|
works as expected |