Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update column.go #79

Closed
wants to merge 1 commit into from
Closed

fix: update column.go #79

wants to merge 1 commit into from

Conversation

vortex14
Copy link

@vortex14 vortex14 commented Sep 3, 2024

For example , we have a struct

type Test struct {
	ch.CHModel     `ch:"partition:toYYYYMM(time)"`
	IsActive     *bool      `ch:"is_active"`
}

If I am trying scan err := r.db.NewSelect().Model(&result).Limit(1).Scan(ctx)
i got error:

 github.com/uptrace/go-clickhouse/ch/chschema.BoolColumn.ConvertAssign({{{0x140000b28c0?, 0x100f62714?, 0x101536540?}}}, 0x1400046ddd0?, {0x1014277e0?, 0x1400046de40?, 0x1400048a7d8?})
        	/.../vendor/github.com/uptrace/go-clickhouse/ch/chschema/column.go:148 +0xd8
        github.com/uptrace/go-clickhouse/ch.scanRow(0x140000a60a0, 0x14000199340, {0x101536540?, 0x1400046ddd0?, 0x14000524300?}, 0x10156b200?, 0x0)
        	/.../vendor/github.com/uptrace/go-clickhouse/ch/model_table_struct.go:79 +0x10c
        github.com/uptrace/go-clickhouse/ch.(*structTableModel).ScanBlock(0x14000524300?, 0x10156b200?)
        	/.../vendor/github.com/uptrace/go-clickhouse/ch/model_table_struct.go:60 +0x7c

@vortex14 vortex14 closed this Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant