code: func (sc *StatementContext) SetWarnings(warns []SQLWarn) {
  	sc.mu.Lock()
  	sc.mu.warnings = warns
  	for _, w := range warns {
  		if w.Level == WarnLevelError {
  			sc.mu.errorCount++
  		}
  	}
  	sc.mu.Unlock()
  }
docs: // SetWarnings sets warnings.