Skip to content

Commit 4298599

Browse files
authored
Merge pull request #8 from RiveryIO/feature/eitam/add_nil_based_value_to_date
Change decodeDatetime2 default to zero
2 parents c6c9248 + d15a7ce commit 4298599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

replication/row_event.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@ func decodeDatetime2(data []byte, dec uint16) (interface{}, int, error) {
14281428
}
14291429

14301430
if intPart == 0 {
1431-
return formatZeroTime(int(frac), int(dec)), n, nil
1431+
return nil, n, nil
14321432
}
14331433

14341434
tmp := intPart<<24 + frac

0 commit comments

Comments
 (0)