From 7a0a122bffa01e073f65136d5882b83e2cb83ad8 Mon Sep 17 00:00:00 2001 From: Mirro Mutth Date: Wed, 21 Feb 2024 11:35:15 +0900 Subject: [PATCH] Default to use LocalDateTime for DATETIME --- .../main/java/io/asyncer/r2dbc/mysql/constant/MySqlType.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/constant/MySqlType.java b/r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/constant/MySqlType.java index 196b70cf0..d425cd9cd 100644 --- a/r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/constant/MySqlType.java +++ b/r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/constant/MySqlType.java @@ -23,6 +23,7 @@ import java.math.BigInteger; import java.nio.ByteBuffer; import java.time.LocalDate; +import java.time.LocalDateTime; import java.time.LocalTime; import java.time.ZonedDateTime; @@ -271,7 +272,7 @@ public int getBinarySize() { /** * A date time type. It does not contain timezone. It uses string format to transfer the value. */ - DATETIME(MySqlType.ID_DATETIME, ZonedDateTime.class), + DATETIME(MySqlType.ID_DATETIME, LocalDateTime.class), /** * A year type. It contains neither leap year information nor timezone.