Skip to content

[Bug]: SQL checks containing delimiters will report an error #1412

@tonghan-gsh

Description

@tonghan-gsh

ODC version

ODC 4.2.3

OB version

What happened?

image
No error will be reported when checking the sql statement of the delimiter alone, but an error will be reported when checking together with pl.

What did you expect to happen?

Checking it together with pl will not report an error.

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

delimiter //;
create function fun_loop (p1 int) returns int(11) begin
declare v1 int;
set v1 = 0;
loop1:LOOP
IF v1 > 10 THEN
LEAVE loop1;
END IF;
set v1 = v1 + p1;
END LOOP;
return v1;
end;

Anything else we need to know?

No response

Cloud

No response

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

Closed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions