code: func (sc *StatementContext) ResetForRetry() {
  	sc.mu.Lock()
  	sc.mu.affectedRows = 0
  	sc.mu.foundRows = 0
  	sc.mu.records = 0
  	sc.mu.updated = 0
  	sc.mu.copied = 0
  	sc.mu.touched = 0
  	sc.mu.message = ""
  	sc.mu.errorCount = 0
  	sc.mu.warnings = nil
  	sc.mu.execDetails = execdetails.ExecDetails{}
  	sc.mu.allExecDetails = make([]*execdetails.ExecDetails, 0, 4)
  	sc.mu.Unlock()
  	sc.TableIDs = sc.TableIDs[:0]
  	sc.IndexIDs = sc.IndexIDs[:0]
  }
docs: // ResetForRetry resets the changed states during execution.