component/metricshelp wantedseverity/minorsig/executiontype/bug
描述
Bug Report
Now, we count the error count in handleQuery which is only valid for ComQuery.
Actually, we should count the error for all commands. Or, some errors may be lost if the command is not ComQuery.
https://github.com/pingcap/tidb/blob/master/server/conn.go#L1270-L1287