tidb 对 help 元命令解析异常

Bug 反馈
清晰准确地描述您发现的问题,提供任何可能复现问题的步骤有助于研发同学及时处理问题
【 TiDB 版本】

> 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)

【 Bug 的影响】
使用help元命令时异常

【可能的问题复现步骤】

  1. 提示语是mysql的,建议修改为tidb的链接
> \?

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 ';'

  1. help 元命令出现 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

【看到的非预期行为】

【期望看到的行为】
可以正常解析,并展示相关信息。

【相关组件及具体版本】

【其他背景信息或者截图】
如集群拓扑,系统和内核版本,应用 app 信息等;如果问题跟 SQL 有关,请提供 SQL 语句和相关表的 Schema 信息;如果节点日志存在关键报错,请提供相关节点的日志内容或文件;如果一些业务敏感信息不便提供,请留下联系方式,我们与您私下沟通。

https://github.com/pingcap/tidb/issues/33609

help 目前还未支持,在 feature request 中

thanks, 期待该功能可以尽快投入使用。

此话题已在最后回复的 60 天后被自动关闭。不再允许新回复。