odc icon indicating copy to clipboard operation
odc copied to clipboard

[Bug]: Unable to execute sql when the comment in the execution statement includes slash

Open Huangxiao-mas opened this issue 1 year ago • 3 comments

ODC version

ODC430

OB version

independent

What happened?

Unable to execute sql when the comment in the execution statement includes slash image

What did you expect to happen?

How can we reproduce it (as minimally and precisely as possible)?

Delimiter $$
create
or replace procedure expro_fzyw_test(v_rettext out clob) as v_addr varchar2(200);
BEGIN
  -- v_addr := 'http://10.85.xx.xx:9936/WebServiceWz/services/callBusiness'; 
  v_rettext := '{"RESPONSECODE":"-3","RESPONSEDESC":"没有传入projid,无法处理"}';
end;
$$

Remove slash ,success exectute it

Delimiter $$
create
or replace procedure expro_fzyw_test(v_rettext out clob) as v_addr varchar2(200);
BEGIN
  -- v_addr := 'http:10.85.xx.xx:9936WebServiceWzservicescallBusiness'; 
  v_rettext := '{"RESPONSECODE":"-3","RESPONSEDESC":"没有传入projid,无法处理"}';
end;
$$

Anything else we need to know?

No response

Huangxiao-mas avatar Jun 19 '24 07:06 Huangxiao-mas

image It may be an ob jdbc driver problem. When using two different sql to get the result set, the one that contains the slash will report an error, and the one that does not contain the slash will not

zijiacj avatar Jul 02 '24 05:07 zijiacj

image The error message is consistent with that exposed by odc

zijiacj avatar Jul 02 '24 05:07 zijiacj

This issue has been confirmed with ob R&D and is expected to be fixed at ob jdbc2.4.13

zijiacj avatar Jul 03 '24 01:07 zijiacj