Skip to content

Commit

Permalink
Fix default precision and maxSize for all datetime types. (#39)
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>

Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand authored Jan 5, 2023
1 parent 2e4aec2 commit 6e963e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/opensearch/jdbc/types/OpenSearchType.java
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 6e963e0

Please sign in to comment.