Skip to content

Commit

Permalink
Merge pull request #274 from taosdata/fix/xftan/parse-null-3.0
Browse files Browse the repository at this point in the history
fix: parse bytes null value
  • Loading branch information
huskar-t authored Jun 5, 2024
2 parents 35df2e4 + 93543fe commit e6eaad1
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 e6eaad1

Please sign in to comment.