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.