Skip to content

Commit 74a9436

Browse files
author
a2-ron
committed
binlog row event: fix MYSQL_TYPE_SET deserialization
1 parent 9c6053c commit 74a9436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/binlog/value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ impl<'de> MyDeserialize<'de> for BinlogValue<'de> {
199199
_ => Err(io::Error::new(io::ErrorKind::InvalidData, "Unknown ENUM")),
200200
},
201201
MYSQL_TYPE_SET => {
202-
let nbytes = col_meta[1] as usize * 8;
202+
let nbytes = col_meta[1] as usize;
203203
let bytes: &[u8] = buf.parse(nbytes)?;
204204
Ok(BinlogValue::Value(Bytes(bytes.into())))
205205
}

0 commit comments

Comments
 (0)