已关闭
[Bug]: use_bison_parser=true,PLSQL中的|| null会core #311
hcs创建于  8月5日关闭于  8月15日
hcs
hcs成员
8月5日 创建

测试类型

SQL功能

测试版本

7.0.0LTS

问题描述

PLSQL中存在|| NULL会core

操作系统和硬件信息

任意

测试环境

oGRAC单节点

被测功能

预置条件

操作步骤

drop procedure if exists bison_null_concat_repro;
alter system set use_bison_parser = false;
create or replace procedure bison_null_concat_repro(p_out out varchar2) as
    local_value varchar2(20) := '12345678';
begin
    p_out := local_value || null;
end;
/

drop procedure if exists bison_null_concat_repro;
alter system set use_bison_parser = true;
create or replace procedure bison_null_concat_repro(p_out out varchar2) as
    local_value varchar2(20) := '12345678';
begin
    p_out := local_value || null;
end;
/

预期输出

Succeed.

实际输出

OG-00304, uds connection is closed

日志信息

image.png

提单组织

内部开发

测试代码

likedislike
hcshcs成员
8月5日 添加了label:bug
opengauss_botopengauss_bot成员
8月5日 添加了label:sig/StorageEngine
opengauss_bot
opengauss_bot成员
8月5日 评论:

Welcome To openGauss Community

Hey @Nerifish , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: StorageEngine ,
and any of the maintainers: @CarrotGo, @chendong76, @chenxiaobin19, @congzhou2603, @dodders, @hwworkholic, @jemappellehc, @muyulinzhong, @quemingjian, @shenzheng4, @shirley_zhengx, @superlchf, @totaj, @wlff234, @wofanzheng, @ywzq1161327784 ,
and any of the committers: @CityYard, @libiao2024, @lijieac, @theothersideofsea, @wang_bowen, @weithu, @xiong_xjun, @yuanyazhi, @zhangzq131 .

likedislike
hcshcs成员
8月5日 关联了pull request:refactor shared bison grammar glue
sungang14sungang14成员
8月6日 issue优先级由 无优先级 改变为 主要
sungang14sungang14成员
8月6日 关联了看板:openGauss 7.0.0-LTS
hcs
hcs成员
8月12日 评论:

image.png

likedislike
hcshcs成员
8月12日 issue状态由 待办的 改变为 待回归
hcshcs成员
8月14日 关联了pull request:Refactor bison ALTER SYSTEM parameter verification
hcshcs成员
8月14日 删除了关联的pull request:Refactor bison ALTER SYSTEM parameter verification
czywj
czywj成员
8月15日 评论:

回归版本:7.0.0LTS B018
结论:通过
image.png

likedislike
czywjczywj成员
8月15日 issue状态由 待回归 改变为 已验收
czywjczywj成员
8月15日 关闭了 issue