You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeitemstruct{
Timeslot time.Time`db:"timeslot"`SumMapmap[int32]int32`db:"sumMap"`
}
err:=conn.Select(&item,`SELECT timeslot,sumMap(statusMapTuple)FROM sum_mapGROUP BY timeslot`)
when I run this SQL,error happended as following: sql: Scan error on column index 1, name "sumMap": unsupported Scan, storing driver.Value type []interface {} into type *map[int32]int32
The text was updated successfully, but these errors were encountered:
when I run this SQL,error happended as following:
sql: Scan error on column index 1, name "sumMap": unsupported Scan, storing driver.Value type []interface {} into type *map[int32]int32
The text was updated successfully, but these errors were encountered: