Skip to content

Commit

Permalink
Revert "Set LocalDateTime as Default Java Type for TIMESTAMP/DATETIME" (
Browse files Browse the repository at this point in the history
#155)

This reverts commit

15b12b1.

Motivation:
The previous comit introduced a breaking change without prior notice and
minor version change.

Modification:
Reverts commit

15b12b1

Result:
Resolves #151
  • Loading branch information
jchrys committed Oct 6, 2023
1 parent 14efd8a commit 612752a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/io/asyncer/r2dbc/mysql/constant/MySqlType.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.ZonedDateTime;

/**
* Enumeration of MySQL data types.
Expand Down Expand Up @@ -196,7 +196,7 @@ public int getBinarySize() {
* A timestamp type, it will automatically synchronize with the server timezone. It still uses string
* format to transfer the timestamp value.
*/
TIMESTAMP(MySqlType.ID_TIMESTAMP, LocalDateTime.class),
TIMESTAMP(MySqlType.ID_TIMESTAMP, ZonedDateTime.class),

/**
* A signed 64-bits integer type.
Expand Down Expand Up @@ -271,7 +271,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, LocalDateTime.class),
DATETIME(MySqlType.ID_DATETIME, ZonedDateTime.class),

/**
* A year type. It contains neither leap year information nor timezone.
Expand Down

0 comments on commit 612752a

Please sign in to comment.