-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
When I run the following code, the ScanType()
always returns an empty interface
rows, err := db.QueryContext(ctx, query)
if err != nil {
return nil, err
}
types, err := rows.ColumnTypes()
if err != nil {
return nil, err
}
types[0].ScanType() // interface{}
Go doc says
// ScanType returns a Go type suitable for scanning into using [Rows.Scan].
// If a driver does not support this property ScanType will return
// the type of an empty interface.
func (ci *ColumnType) ScanType() reflect.Type
which would indicate that maybe this library doesn't support this functionality. Can it be supported?
Metadata
Metadata
Assignees
Labels
No labels