Original post

My function definition is

func (s *Stmt) CheckNamedValue(nv *driver.NamedValue) (err error) {
	switch d := nv.Value.(type) {
        case []int64:
                err = nil
	default:
		nv.Value, err = driver.DefaultParameterConverter.ConvertValue(nv.Value)
	}
	return err
}

This is function works fine if I pass []int64 but not [size]int64.
I am checking the type but why it is the above two are different?

Thanks,
Akhil