【标题描述】: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信息):
【测试代码】:
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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
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 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
登录 后才可以发表评论