24 Star 25 Fork 188

openGauss / Plugin

 / 详情

【测试类型:SQL功能】【测试版本:master】orafce兼容A库的wm_concat函数报错

Accepted
Bug
Opened this issue  
2022-05-12 15:57

【标题描述】: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=#

【原因分析】:

  1. 这个问题的根因
  2. 问题推断过程
  3. 还有哪些原因可能造成类似现象
  4. 该问题是否有临时规避措施
  5. 问题解决方案
  6. 预计修复问题时间

【日志信息】(请附上日志文件、截图、coredump信息):

【测试代码】:

Comments (1)

kangyao created缺陷

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.

kangyao set assignee to 吕辉
kangyao set priority to Main
kangyao set branch to master
kangyao changed description
kangyao changed title
吕辉 changed issue state from 待办的 to 已确认
吕辉 changed issue state from 已确认 to 修复中
吕辉 changed issue state from 修复中 to 已完成
kangyao changed issue state from 已完成 to 测试中
kangyao changed issue state from 测试中 to 已验收

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
参与者(2)
5622128 opengauss bot 1581905080
1
https://gitee.com/opengauss/Plugin.git
git@gitee.com:opengauss/Plugin.git
opengauss
Plugin
Plugin

Search