Skip to content

Commit 4c4eab5

Browse files
Merge pull request #24 from RiveryIO/fix_test_dates
fix: Fix test dates
2 parents 64f776a + 04f7d97 commit 4c4eab5

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
@@ -1662,7 +1662,7 @@ func decodeDatetime2(data []byte, dec uint16) (interface{}, int, error) {
16621662
ymdhms := tmp >> 24
16631663

16641664
ymd := ymdhms >> 17
1665-
ym := ymdhms % (1 << 17)
1665+
ym := ymd >> 5
16661666
hms := ymdhms % (1 << 17)
16671667

16681668
day := int(ymd % (1 << 5))

0 commit comments

Comments
 (0)