399 Star 1.3K Fork 1.5K

GVPopenGauss / openGauss-server

 / 详情

【测试类型:SQL功能】【测试版本:master】 当sql_ignore_strategy=ignore_null,insert ignore 向非空约束的表中插入null值,实际未插入,应回显insert 0 0

已验收
缺陷
创建于  
2022-06-30 10:41

【标题描述】:当sql_ignore_strategy=ignore_null,insert ignore 向非空约束的表中插入null值,实际未插入,应回显insert 0 0
【测试类型:SQL功能】【测试版本:master】 当sql_ignore_strategy=ignore_null,insert /*+ ignore_error */向非空约束的表中插入null值,实际未插入,应回显insert 0 0

【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):
CentOS Linux release 7.6.1908 (Core)
Linux kwemhisprc01300 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
【测试环境】(单机/1主x备x级联备):
单机
【被测功能】:
ignore
【测试类型】:
功能测试
【数据库版本】(查询命令: gaussdb –V):
gaussdb (openGauss 3.0.0 build ) compiled at 2022-06-27 17:35:01 commit 0 last mr
【预置条件】:
已安装opengauss
enable_opfusion=on
sql_ignore_strategy=ignore_null
【操作步骤】(请填写详细的操作步骤):

  1. 建B库,切B库
    2.执行语句:
    drop table if exists insert_ignore002 cascade;
    create table insert_ignore002(id1 integer not null, id2 integer not null, id3 integer not null, id4 integer);
    insert /*+ ignore_error */ into insert_ignore002 values(null, 2, 3, 4);

【预期输出】:
回显insert 0 0
【实际输出】:
回显insert 0 1
输入图片说明
【原因分析】:

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

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

【测试代码】:

评论 (4)

lixin 创建了缺陷

Hey @lixin, 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.

lixin 负责人设置为zhangzhixian
lixin 关联项目设置为openGauss 3.1.0 community
lixin 优先级设置为次要
lixin 关联分支设置为master
lixin 修改了描述
zhangzhixian 任务状态待办的 修改为已确认
zhangzhixian 任务状态已确认 修改为修复中
zhangzhixian 任务状态修复中 修改为已完成

输入图片说明
输入图片说明
gaussdb (openGauss 3.0.0 build ) compiled at 2022-07-25 10:27:47 commit 0 last mr
兼容B库,无dolphin插件场景,已验证修复

lixin 任务状态已完成 修改为测试中

输入图片说明
gaussdb (openGauss 3.0.0 build ) compiled at 2022-07-25 10:27:47 commit 0 last mr
编译安装dolphin插件、兼容B库场景,已验证修复

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

登录 后才可以发表评论

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

搜索帮助