【标题描述】:orafce兼容A库的wm_concat函数报错
【测试类型:SQL功能】
【测试版本:3.0.0】
问题描述
orafce兼容A库的wm_concat函数报错
【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):
[yk_0427@kwemhisprc01300 ~]$ cat /etc/system-release
CentOS Linux release 7.6.1810 (Core)
[yk_0427@kwemhisprc01300 ~]$ uname -a
Linux kwemhisprc01300 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
【测试环境】(单机/1主x备x级联备):
单机
【被测功能】:
orafce插件兼容A库的wm_concat函数功能
【测试类型】:SQL功能
【数据库版本】(查询命令: gaussdb –V):
[yk_0427@kwemhisprc01300 ~]$ gaussdb -V
gaussdb (openGauss 3.0.0 build 475170ca) compiled at 2022-04-27 20:04:34 commit 0 last mr
【预置条件】: 数据状态正常,已安装orafce插件
【操作步骤】(请填写详细的操作步骤):
1、创建表插入数据
create table t_orafce_41 (id int,content text);
insert into t_orafce_41 values(1,'testtext1');
insert into t_orafce_41 values(1,'testtext2');
insert into t_orafce_41 values(2,'testtext3');
insert into t_orafce_41 values(2,'testtext4');
insert into t_orafce_41 values(3,'testtext5');
insert into t_orafce_41 values(3,'testtext6');
2、使用wm_concat函数拼接列值
select wm_concat(content::text) from t_orafce_41;
select wm_concat(content::text) from t_orafce_41 group by id;
select id,wm_concat(content::text) from t_orafce_41 group by id;
【预期输出】:
1、创建成功,数据插入成功
2、
2.1 拼接成一条记录,以逗号分隔content内容
2.2 拼接成3条记录,以逗号分隔content内容,按照id分组
2.3 拼接成3条记录,以逗号分隔content内容,按照id分组
【实际输出】:
yk_0427@postgres=#select wm_concat(content::text) from t_orafce_41;
ERROR: function wm_concat(text) does not exist
LINE 1: select wm_concat(content::text) from t_orafce_41;
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
CONTEXT: referenced column: wm_concat
yk_0427@postgres=#select wm_concat(content::text) from t_orafce_41 group by id;
ERROR: function wm_concat(text) does not exist
LINE 1: select wm_concat(content::text) from t_orafce_41 group by id...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
CONTEXT: referenced column: wm_concat
yk_0427@postgres=#select id,wm_concat(content::text) from t_orafce_41 group by id;
ERROR: function wm_concat(text) does not exist
LINE 1: select id,wm_concat(content::text) from t_orafce_41 group by...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
CONTEXT: referenced column: wm_concat
yk_0427@postgres=#
【原因分析】:
【日志信息】(请附上日志文件、截图、coredump信息):
【测试代码】:
Hey @kangyao, 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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Sign in to comment