Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tidb 对 help 元命令解析异常
Bug Report
Clearly and accurately describe the issue you found. Providing any steps to reproduce the issue can help the development team address it promptly.
【 TiDB Version 】
> select tidb_version()\G
*************************** 1. row ***************************
tidb_version(): Release Version: v6.2.0
Edition: Community
Git Commit Hash: daf2b17cdfe30c02ce282361009fb5bdb05f2b0e
Git Branch: heads/refs/tags/v6.2.0
UTC Build Time: 2022-08-22 13:47:05
GoVersion: go1.18.5
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: tikv
1 row in set (0.00 sec)
【 Impact of the Bug 】
Exception when using the help meta-command
【 Possible Steps to Reproduce the Issue 】
- The prompt is for MySQL, it is recommended to change it to TiDB’s link
> \?
For information about MySQL products and services, visit:
http://www.mysql.com/
For developer information, including the MySQL Reference Manual, visit:
http://dev.mysql.com/
To buy MySQL Enterprise support, training, or other products, visit:
https://shop.mysql.com/
List of all MySQL commands:
Note that all text commands must be first on line and end with ';'
- help meta-command results in ERROR 8108
> \? create
ERROR 8108 (HY000): Unsupported type *ast.HelpStmt
> \? create user
ERROR 8108 (HY000): Unsupported type *ast.HelpStmt
> help contents
ERROR 8108 (HY000): Unsupported type *ast.HelpStmt
【 Observed Unexpected Behavior 】
【 Expected Behavior 】
Should parse normally and display relevant information.
【 Related Components and Specific Versions 】
【 Additional Background Information or Screenshots 】
Such as cluster topology, system and kernel version, application app information, etc.; if the issue is related to SQL, please provide SQL statements and related table schema information; if there are critical errors in node logs, please provide relevant node log content or files; if some business-sensitive information is inconvenient to provide, please leave contact information for private communication.