code: func (sc *StatementContext) GetWarnings() []error {
  	sc.mu.Lock()
  	warns := make([]error, len(sc.mu.warnings))
  	copy(warns, sc.mu.warnings)
  	sc.mu.Unlock()
  	return warns
  }
docs: // GetWarnings gets warnings.