From 93543fefe6424e94f2d96b47f107e5b80e86ffea Mon Sep 17 00:00:00 2001 From: t_max <1172915550@qq.com> Date: Wed, 5 Jun 2024 13:28:49 +0800 Subject: [PATCH] fix: parse bytes null value --- common/parser/block.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/parser/block.go b/common/parser/block.go index 705ab7d..dd7dfa1 100644 --- a/common/parser/block.go +++ b/common/parser/block.go @@ -178,7 +178,11 @@ func rawConvertTime(pStart unsafe.Pointer, row int, arg ...interface{}) driver.V } func rawConvertVarBinary(pHeader, pStart unsafe.Pointer, row int) driver.Value { - return rawGetBytes(pHeader, pStart, row) + result := rawGetBytes(pHeader, pStart, row) + if result == nil { + return nil + } + return result } func rawGetBytes(pHeader, pStart unsafe.Pointer, row int) []byte {