列索引 8 上的扫描错误,名称“replicated”:不支持扫描,将 driver.Value 类型 uint8 存储为 **bool 类型
问题内容
我使用 sqlx 将 PostgreSQL boolan[] 选择到 Golang 结构中,其中目标结构值为 []*bool。
type App struct { ApplicationID string `db:"application_id"` Name string `db:"name"` Description string `db:"description"` Replicated []*bool `db:"replicated"` } var apps []App err := trx.Select(&apps, "Select * From my_function()")登录后复制