Skip to content

Commit

Permalink
fix: parse bytes null value
Browse files Browse the repository at this point in the history
  • Loading branch information
huskar-t committed Jun 5, 2024
1 parent 35df2e4 commit 93543fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/parser/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 93543fe

Please sign in to comment.