Skip to content

Commit 92e7227

Browse files
committed
Fixed DATE_AND_TIME_AS_LONG_MICRO handling regression
1 parent e175ce9 commit 92e7227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/shyiko/mysql/binlog/event/deserialization/AbstractRowsEventDataDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ protected Serializable deserializeNewDecimal(int meta, ByteArrayInputStream inpu
239239
}
240240

241241
private Long castTimestamp(Long timestamp, int fsp) {
242-
if (microsecondsPrecision && timestamp != null && timestamp > -1) {
242+
if (microsecondsPrecision && timestamp != null && !timestamp.equals(invalidDateAndTimeRepresentation)) {
243243
return timestamp * 1000 + fsp % 1000;
244244
}
245245
return timestamp;

0 commit comments

Comments
 (0)