已关闭
[Bug]: ogsql输入select * fro按Tab错误补全为frozen_status #288
wuchenlong创建于  7月25日关闭于  27 天前
wuchenlong
wuchenlong成员
7月25日 创建

测试类型

工具功能

测试版本

7.0.0-LTS

操作系统和硬件信息

openEuler 20.03 aarch64

测试环境

oGRAC双节点

被测功能

ogsql Readline Tab 自动补全

预置条件

oGRAC 双节点数据库正常,db 资源均为 ONLINE;使用 Linux 真实 TTY 启动 ogsql,HISTORY 为 ON。

操作步骤

-- 1. 交互连接
ogsql / as sysdba

-- 2. 在 SQL> 提示符输入以下内容,不按 Enter
select * fro

-- 3. 按一次 Tab

预期输出

当前 token fro 应优先按 SQL 关键字补全为 from,输入行变为:

SQL> select * from

实际输出

按一次 Tab 后,fro 被补全为内置函数候选 frozen_status

SQL> select * fro
SQL> select * frozen_status

日志信息

提单组织

测试团队

likedislike
wuchenlongwuchenlong成员
7月25日 添加了label:bug
opengauss_bot
opengauss_bot成员
7月25日 评论:

This issue requires an assignee. Since you haven't specified one, we've assigned TestManager as the default assignee for this issue.

likedislike
opengauss_botopengauss_bot成员
7月25日 将 TestManager 设为负责人
opengauss_botopengauss_bot成员
7月25日 添加了label:sig/StorageEngine
opengauss_bot
opengauss_bot成员
7月25日 评论:

Welcome To openGauss Community

Hey @wuchenlong , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: StorageEngine ,
and any of the maintainers: @CarrotGo, @chendong76, @chenxiaobin19, @congzhou2603, @dodders, @hwworkholic, @jemappellehc, @muyulinzhong, @quemingjian, @shenzheng4, @shirley_zhengx, @superlchf, @totaj, @wlff234, @wofanzheng, @ywzq1161327784 ,
and any of the committers: @CityYard, @libiao2024, @lijieac, @theothersideofsea, @wang_bowen, @weithu, @xiong_xjun, @yuanyazhi, @zhangzq131 .

likedislike
wuchenlongwuchenlong成员
7月25日 修改了issue 的描述
此处折叠了8条事件消息 查看更多
muyulinzhongmuyulinzhong成员
8月10日 移除了负责人 shirley_zhengx
leweiyang
leweiyang成员
8月21日 评论:

已修复
image.png
image.png

image.png

likedislike
leweiyangleweiyang成员
8月21日 关联了pull request:优化补全时的候选顺序(#288、#291、#292、#296、#298)
leweiyangleweiyang成员
28 天前 issue状态由 待办的 改变为 待回归
wuchenlong
wuchenlong成员
27 天前 评论:

回归版本:oGRAC Release 7.0.0-RC3 18ce0a2 build 2026-08-26 09:48:01
回归环境:oGRAC 双节点(20.20.20.104 / 20.20.20.106),db=ONLINE,节点 20.20.20.104 执行
结论:通过select * fro + Tab 补全为 from,不再误补 frozen_status

回归步骤ogsql / as sysdba,Linux TTY)

SQL> select * fro<Tab>

实际输出
行变为 select * from,未见 frozen_status。pty 自动化断言通过。

likedislike
wuchenlongwuchenlong成员
27 天前 issue状态由 待回归 改变为 已验收
wuchenlongwuchenlong成员
27 天前 关闭了 issue