Skip to content

Commit 436ddad

Browse files
committed
Default to use LocalDateTime for DATETIME
1 parent c0f72df commit 436ddad

File tree

1 file changed

+2
-1
lines changed
  • r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/constant

1 file changed

+2
-1
lines changed

r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/constant/MySqlType.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.math.BigInteger;
2424
import java.nio.ByteBuffer;
2525
import java.time.LocalDate;
26+
import java.time.LocalDateTime;
2627
import java.time.LocalTime;
2728
import java.time.ZonedDateTime;
2829

@@ -271,7 +272,7 @@ public int getBinarySize() {
271272
/**
272273
* A date time type. It does not contain timezone. It uses string format to transfer the value.
273274
*/
274-
DATETIME(MySqlType.ID_DATETIME, ZonedDateTime.class),
275+
DATETIME(MySqlType.ID_DATETIME, LocalDateTime.class),
275276

276277
/**
277278
* A year type. It contains neither leap year information nor timezone.

0 commit comments

Comments
 (0)