GORM Playground Link
使用gorm+clickhouse连接 DB连接 import( "gorm.io/driver/clickhouse" "gorm.io/driver/mysql")
db_ch, dberr = gorm.Open(clickhouse.Open(dsn), &gorm.Config{})
Description
使用gorm连接clickhouse,读取数据,当读取到NullFloat字段时,报错,并且该字段索引后面的字段值也为空
字段如下:
Section2PdP1 float64 gorm:"section_2_pd_p1"
试了多种类型,包含float64,float64,sql.NullFloat64, sql.RawBytes, interface{}.
读取时均为如下报错:
sql: Scan error on column index 14, name "section_2_pd_p1": unsupported Scan, storing driver.Value type float64 into type *sql.RawBytes
并且该字段index后面的字段值也为空,但是该字段前的字段值正常。
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨