From 1d79a2d9c061d2a697744cf7a45d6e9c4e787887 Mon Sep 17 00:00:00 2001 From: vortex14 Date: Mon, 26 Aug 2024 22:44:39 +1000 Subject: [PATCH] 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: