Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHOW ERRORS returns only one reported error #34276

Closed
qiancai opened this issue Apr 27, 2022 · 0 comments · Fixed by #34311
Closed

SHOW ERRORS returns only one reported error #34276

qiancai opened this issue Apr 27, 2022 · 0 comments · Fixed by #34311
Assignees
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@qiancai
Copy link
Contributor

qiancai commented Apr 27, 2022

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

https://docs.pingcap.com/zh/tidb/v6.0/sql-statement-show-errors

tidb> select invalid;
ERROR 1054 (42S22): Unknown column 'invalid' in 'field list'
tidb> create invalid;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 14 near "invalid"
tidb> SHOW ERRORS;

2. What did you expect to see? (Required)

mysql> SHOW ERRORS;
+-------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
| Level | Code | Message |
+-------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
| Error | 1064 | You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'invalid' at line 1 |
+-------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.02 sec)

3. What did you see instead (Required)

+-------+------+------------------------------------------+
| Level | Code | Message |
+-------+------+------------------------------------------+
| Error | 1054 | Unknown column 'invalid' in 'field list' |
+-------+------+------------------------------------------+
1 row in set (0.00 sec)

4. What is your TiDB version? (Required)

5.7.25-TiDB-v6.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants