Skip to content

Commit 38f64f7

Browse files
author
a2-ron
committed
binlog row event: fix MYSQL_TYPE_GEOMETRY deserialization
1 parent 74a9436 commit 38f64f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/binlog/value.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ impl<'de> MyDeserialize<'de> for BinlogValue<'de> {
206206
MYSQL_TYPE_TINY_BLOB
207207
| MYSQL_TYPE_MEDIUM_BLOB
208208
| MYSQL_TYPE_LONG_BLOB
209-
| MYSQL_TYPE_BLOB => {
209+
| MYSQL_TYPE_BLOB
210+
| MYSQL_TYPE_GEOMETRY => {
210211
let nbytes = match col_meta[0] {
211212
1 => *buf.parse::<RawInt<u8>>(())? as usize,
212213
2 => *buf.parse::<RawInt<LeU16>>(())? as usize,

0 commit comments

Comments
 (0)