// Execute a prepared statement func (s *session) ExecutePreparedStmt(stmtID uint32, args ...interface{}) (rset.Recordset, error) { err := checkArgs(args...) if err != nil { return nil, err } st := executor.CompileExecutePreparedStmt(s, stmtID, args...) r, err := runStmt(s, st, args...) return r, errors.Trace(err) }
// ExecutePreparedStmt executes a prepared statement. func (s *session) ExecutePreparedStmt(stmtID uint32, args ...interface{}) (ast.RecordSet, error) { if err := s.checkSchemaValidOrRollback(); err != nil { return nil, errors.Trace(err) } err := checkArgs(args...) if err != nil { return nil, errors.Trace(err) } st := executor.CompileExecutePreparedStmt(s, stmtID, args...) r, err := runStmt(s, st, args...) return r, errors.Trace(err) }