已关闭
[Bug]: 【DATEADD函数】参数含有null值,datepart为null预期报错,实际无报错 #8412
liuzhen001创建于  8月19日关闭于  20 天前
liuzhen001
liuzhen001成员
8月19日 创建

测试类型

SQL功能

测试版本

7.0.0LTS

问题描述

操作系统和硬件信息

2403arm

测试环境

企业版主备

被测功能

预置条件

操作步骤

--1、创建并切换到SQL server兼容库
drop database if exists db_1117642;
create database db_1117642 dbcompatibility 'D';
\c db_1117642;
--参数含有null值
select DATEADD(null,1,'2023/3/31');
select DATEADD(qq,null,'2023/3/31');
select DATEADD(qq,1,null);

--number为空
select DATEADD(qq,'','2023/3/31');

预期输出

datepart为null报错,其余正常输出

实际输出

2b2f2e5bb33c42fc2a4226c67bf0c384.png

日志信息

2b2f2e5bb33c42fc2a4226c67bf0c384.png

提单组织

测试团队

测试代码

likedislike
liuzhen001liuzhen001成员
8月19日 添加了label:bug
opengauss_bot
opengauss_bot成员
8月19日 评论:

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成员
8月19日 将 TestManager 设为负责人
opengauss_botopengauss_bot成员
8月19日 添加了label:sig/StorageEngine,sig/AI,sig/CM,sig/CloudNative,sig/SecurityTechnology,sig/SQLEngine
opengauss_bot
opengauss_bot成员
8月19日 评论:

Welcome To openGauss Community

Hey @liuzhen001 , 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, AI, CM, CloudNative, SecurityTechnology, SQLEngine ,
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: @Igali, @bihua111, @cailei19, @h_ray, @levy53071, @libiao2024, @lihaixiao, @mrzack, @wangfeihuo, @wuyuechuan, @xiong_xjun, @zhangfengzhi123, @zhangxubo, @zhangzq131, @zjh_hw .

likedislike
liuzhen001liuzhen001成员
8月19日 将 ywzq1161327784 设为负责人,移除负责人 TestManager
liuzhen001liuzhen001成员
8月19日 关联了看板:openGauss 7.0.0-LTS
qianxue21qianxue21
8月20日 关联了pull request:[bugfix] 【DATEADD函数】参数含有null值,datepart为null预期报错,实际无报错
ywzq1161327784ywzq1161327784成员
27 天前 issue状态由 待办的 改变为 已完成
ywzq1161327784ywzq1161327784成员
27 天前 移除了负责人 ywzq1161327784
opengauss_bot
opengauss_bot成员
27 天前 评论:

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成员
27 天前 将 TestManager 设为负责人
ywzq1161327784ywzq1161327784成员
27 天前 将 qianxue21 设为负责人,移除负责人 TestManager
ywzq1161327784ywzq1161327784成员
25 天前 issue状态由 已完成 改变为 待回归
liuzhen001
liuzhen001成员
20 天前 评论:

回归版本:7.0.0B020
回归结论:回归通过
回归过程:
image.png

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