code: func (sc *StatementContext) WarningCount() uint16 {
  	if sc.InShowWarning {
  		return 0
  	}
  	sc.mu.Lock()
  	wc := uint16(len(sc.mu.warnings))
  	sc.mu.Unlock()
  	return wc
  }
docs: // WarningCount gets warning count.