clickhouse icon indicating copy to clipboard operation
clickhouse copied to clipboard

Can't insert FixedString column using GORM serializer

Open OscBacon opened this issue 1 year ago • 0 comments

Hi, I've filed an issue under the clickhouse-go repo, but this might be an issue with the clickhouse driver.

https://github.com/ClickHouse/clickhouse-go/issues/939

Is it expected for the output of a serializer to be its value (a string for example), or for it to be a *schema.serializer object?

It seems as though otherwise, DB clients need to explicitly handle this serializer object, which isn't the case with clickhouse-go. For example, see this switch on types for FixedString inserts: https://github.com/ClickHouse/clickhouse-go/blob/ca9c1f0265cec9aeb5cd54cabec31136adc2c9b3/lib/column/fixed_string.go#L140

Description

OscBacon avatar Mar 22 '23 08:03 OscBacon