【标题描述】:array_to_string结果与PG不同
【测试类型:SQL功能/存储功能/接口功能/工具功能/性能/并发/压力长稳/故障注入/安全/资料/编码规范】【测试版本:3.0.0】 问题描述
【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):
【测试环境】(单机/1主x备x级联备):
单机
【被测功能】:
array_to_string函数
【测试类型】:
功能测试
【数据库版本】(查询命令: gaussdb –V):
【预置条件】:
无
【操作步骤】(请填写详细的操作步骤):
select array_to_string(array['A','B'],'');
【预期输出】:
结果为AB,如PG结果如下:
【实际输出】:
结果为空
【原因分析】:
【日志信息】(请附上日志文件、截图、coredump信息):
【测试代码】:
Hey @XiyeLan, 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默认数据库为A类型,此类型下''意义为NULL,而此函数为strict函数,即输入参数有null直接返回null,创建一个PG类型或B类型的数据库可以实现与PG一样的效果
非问题关闭
登录 后才可以发表评论