25 Star 25 Fork 195

openGauss / Plugin

 / 详情

【测试类型:SQL功能】【测试版本:5.1.0】ALTER TABLE不支持ALTER TABLE t1 ADD COLUMN (f1 INT, f3 int), ADD COLUMN (f2 INT)语法

已验收
缺陷 成员
创建于  
2023-09-16 15:07

【标题描述】:
【测试类型:SQL功能】【测试版本:5.1.0】ALTER TABLE不支持ALTER TABLE t1 ADD COLUMN (f1 INT, f3 int), ADD COLUMN (f2 INT)语法

【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):

【测试环境】(单机/1主x备x级联备):

【被测功能】:

【测试类型】:

【数据库版本】(查询命令: gaussdb -V):

【预置条件】:

【操作步骤】(请填写详细的操作步骤):

create table t1(a int);
ALTER TABLE t1 ADD COLUMN (f1 INT, f3 int), ADD COLUMN (f2 INT), ADD KEY f2k(f2);

【预期输出】:
执行成功,新增两列以及一个索引

【实际输出】:
syntax error

【原因分析】:

  1. 这个问题的根因
  2. 问题推断过程
  3. 还有哪些原因可能造成类似现象
  4. 该问题是否有临时规避措施
  5. 问题解决方案
  6. 预计修复问题时间

【日志信息】(请附上日志文件、截图、coredump信息):

【测试代码】:

评论 (4)

pengjiong 创建了缺陷
pengjiong 优先级设置为不重要
展开全部操作日志

Hey @pengjiong, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss_bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at Here to find the details.

Hi @pengjiong,
if you want to get quick review about your issue, please contact the owner in first: @黄凯耀 ,
and then any of the maintainers: @黄凯耀 , @CodeRejector
and then any of the committers: @siven_dev , @chenxiaobin , @wumingyuan , @zhaojun , @jeremytim , @husan1024 , @pengjiong , @吴岳川 , @熊小军 , @xiuqiangwang , @zhaosiqi
if you have any question, please contact the SIG: Plugin.

opengauss_bot 添加了
 
sig/plugin
标签
pengjiong 负责人设置为pengjiong
pengjiong 添加协作者吴岳川
pengjiong 关联项目设置为openGauss 5.1.0 community
pengjiong 任务状态待办的 修改为修复中
pengjiong 计划开始日期设置为2023-09-19
pengjiong 计划截止日期设置为2023-09-20
pengjiong 通过opengauss/Plugin Pull Request !1020任务状态修复中 修改为已完成
pengjiong 任务状态已完成 修改为待回归
jiexiao1413 任务状态待回归 修改为测试中

回归通过输入图片说明

jiexiao1413 任务状态测试中 修改为已验收

(openGauss 5.0.1 build f766addf) compiled at 2023-10-07 18:06:48 commit 0 last mr on x86_64-unknown-linux-gnu, compiled by g++ (GCC) 7.3.0, 64-bit
输入图片说明

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
13084139 opengauss bot 1686829535
1
https://gitee.com/opengauss/Plugin.git
git@gitee.com:opengauss/Plugin.git
opengauss
Plugin
Plugin

搜索帮助