Skip to content

Commit c9d6b03

Browse files
authored
Update block.go
1 parent 48cab2c commit c9d6b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/data/block.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (block *Block) Read(serverInfo *ServerInfo, decoder *binary.Decoder) (err e
104104
func (block *Block) writeArray(col column.Column, value Value, num, level int) error {
105105
if level > col.Depth() {
106106
arrColumn, ok := col.(*column.Array)
107-
if strings.Contains(col.CHType(), "Nullable") && ok {
107+
if ok && strings.Contains(col.CHType(), "Nullable") {
108108
return arrColumn.WriteNull(block.buffers[num].Offset, block.buffers[num].Column, value.Interface())
109109
}
110110
return col.Write(block.buffers[num].Column, value.Interface())

0 commit comments

Comments
 (0)