Kunlun-storage is the storage component for Kunlun distributed DBMS. It's developed based on percona-mysql-8.0.x and contains exclusive features used by Kunlun distributed DBMS, performance enhancements and XA transaction crash safety enhancements without which MySQL would not be able to execute XA transactions reliably.
component: kunlun-storage | priority: major | resolution: fixed
2021-09-06 19:19:45: @charleszettadb created the issue
1.
CREATE OR REPLACE FUNCTION LOOP1()
RETURNS void
AS $$
DECLARE
i integer=1;
begin
for i in 1..6 LOOP
RAISE NOTICE '%',i;
END LOOP;
END;
$$ LANGUAGE PLPGSQL;
ERROR: syntax error at or near "1"
LINE 9: for i in 1..6 LOOP
^
CREATE OR REPLACE FUNCTION LOOP1()
RETURNS void
AS $$
DECLARE
a integer=1;
begin
while a <= 6 loop
a = a+1
select n;
END LOOP;
END;
$$ LANGUAGE PLPGSQL;
ERROR: syntax error at or near "select"
LINE 9: select n;
^
Issue migrated from trac ticket # 154
component: kunlun-storage | priority: major | resolution: fixed
2021-09-06 19:19:45: @charleszettadb created the issue