25 Star 26 Fork 195

openGauss / Plugin

 / 详情

【测试类型:SQL功能】【测试版本:5.1.0】date_bool、time_bool函数输入零值入参时返回值错误

已验收
缺陷
创建于  
2023-09-15 14:32

【标题描述】:date_bool、time_bool函数输入零值入参时返回值错误
【测试类型:SQL功能】【测试版本:5.1.0】 问题描述
date_bool、time_bool函数输入零值入参时返回值错误
【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):
openEuler release 20.03 (LTS)
Linux dggpopel00002 4.19.90-2003.4.0.0036.oe1.x86_64 #1 SMP Mon Mar 23 19:10:41 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
【测试环境】(单机/1主x备x级联备):
一主两备机
【被测功能】:
内置函数
【测试类型】:
SQL功能
【数据库版本】(查询命令: gaussdb -V):
(openGauss 5.1.0 build f350d663) compiled at 2023-09-11 00:08:59 commit 0 last mr on x86_64-unknown-linux-gnu, compiled by g++ (GCC) 10.3.0,
64-bit
【预置条件】:
b库下执行
【操作步骤】(请填写详细的操作步骤):
1.
select date_bool('0000-00-00');
select time_bool('00:00:00');
2.文档中描述及示例有误
【预期输出】:
1.返回false
2.按照实际情况描述函数功能,实际日期与时间全为0时,函数返回false

【实际输出】:
1.返回null
输入图片说明
2.函数功能描述错误,日期年为0及时间小时数为0时返回false,示例错误
输入图片说明

【原因分析】:

这个问题的根因
问题推断过程
还有哪些原因可能造成类似现象
该问题是否有临时规避措施
问题解决方案
预计修复问题时间
【日志信息】(请附上日志文件、截图、coredump信息):

【测试代码】:

评论 (4)

邹佳良 创建了缺陷
邹佳良 添加协作者吴岳川
展开全部操作日志

Hey @邹佳良, 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.

opengauss_bot 添加了
 
sig/plugin
标签

Hi @邹佳良,
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: @chenxiaobin , @pengjiong , @熊小军 , @xiuqiangwang , @husan1024 , @siven_dev , @zhaosiqi , @jeremytim , @zhaojun , @吴岳川 , @wumingyuan
if you have any question, please contact the SIG: Plugin.

吴岳川 负责人何少渝 修改为李秦朗
吴岳川 添加协作者何少渝
李秦朗 任务状态待办的 修改为已确认
李秦朗 任务状态已确认 修改为修复中
李秦朗 通过opengauss/docs Pull Request !5711任务状态修复中 修改为已完成
pengjiong 任务状态已完成 修改为修复中
李秦朗 任务状态修复中 修改为已完成
李秦朗 任务状态已完成 修改为待回归
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
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(4)
13084139 opengauss bot 1686829535
1
https://gitee.com/opengauss/Plugin.git
git@gitee.com:opengauss/Plugin.git
opengauss
Plugin
Plugin

搜索帮助