openGauss5.0.0存储过程静态调用子存储过程问题求助(已解决)

存储过程静态调用子存储过程报错:query has no destination for result data.

向大神求助如何解决

case:

#创建子过程

create or replace procedure test()

as

begin

end;

#创建主过程

create or replace procedure maintest()

as

begin

call test();

end;

#调用主过程

end;

begin;

call maintest();

end;

#创建主过程

create or replace procedure maintest()

as

begin

// call test();

test(); //调用子过程时不需要使用“call” 关键字

end;

此话题已在最后回复的 7 天后被自动关闭。不再允许新回复。