Exemple #1
0
func run(s mysql.Stmt, args []driver.Value) (*rowsRes, error) {
	a := (*[]interface{})(unsafe.Pointer(&args))
	res, err := s.Run(*a...)
	if err != nil {
		return nil, errFilter(err)
	}
	return &rowsRes{my: res}, nil
}
Exemple #2
0
func run(s mysql.Stmt, args []driver.Value) (rr rowsRes, err error) {
	a := (*[]interface{})(unsafe.Pointer(&args))
	rr.my, err = s.Run(*a...)
	if err != nil {
		err = errFilter(err)
	}
	return
}