Skip to content

Commit

Permalink
[JDBC] Change default Precison and DisplaySize for all datetime…
Browse files Browse the repository at this point in the history
… types. (#185)

* Change default `Precison` and `DisplaySize` for `TIME` and `DATE` types.

Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
  • Loading branch information
Yury-Fridlyand authored Dec 19, 2022
1 parent 2af7321 commit b8af5a3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ public enum OpenSearchType {
IP(JDBCType.VARCHAR, String.class, 15, 0, false),
NESTED(JDBCType.STRUCT, null, 0, 0, false),
OBJECT(JDBCType.STRUCT, null, 0, 0, false),
DATE(JDBCType.DATE, Date.class, 24, 24, false),
TIME(JDBCType.TIME, Time.class, 24, 24, false),
DATETIME(JDBCType.TIMESTAMP, Timestamp.class, 24, 24, false),
TIMESTAMP(JDBCType.TIMESTAMP, Timestamp.class, 24, 24, false),
DATE(JDBCType.DATE, Date.class, 10, 10, false),
TIME(JDBCType.TIME, Time.class, 8, 8, false),
DATETIME(JDBCType.TIMESTAMP, Timestamp.class, 29, 29, false),
TIMESTAMP(JDBCType.TIMESTAMP, Timestamp.class, 29, 29, false),
BINARY(JDBCType.VARBINARY, String.class, Integer.MAX_VALUE, 0, false),
NULL(JDBCType.NULL, null, 0, 0, false),
UNDEFINED(JDBCType.NULL, null, 0, 0, false),
Expand Down

0 comments on commit b8af5a3

Please sign in to comment.