From 6cae62de449c174b96551fb70b9372f7d21777cd Mon Sep 17 00:00:00 2001 From: vortex14 Date: Mon, 2 Sep 2024 14:49:16 +1000 Subject: [PATCH] fix: Update column.go Convert ptr to bool. --- ch/chschema/column.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ch/chschema/column.go b/ch/chschema/column.go index 735540d..00a8eaf 100644 --- a/ch/chschema/column.go +++ b/ch/chschema/column.go @@ -142,6 +142,8 @@ func (c NumericColumnOf[T]) ConvertAssign(idx int, v reflect.Value) error { func (c BoolColumn) ConvertAssign(idx int, v reflect.Value) error { switch v.Kind() { + case reflect.Ptr: + v.Set(reflect.ValueOf(&c.Column[idx])) case reflect.Bool: v.SetBool(c.Column[idx]) default: