fix(sql): split GaussDB procedures with repeated declarations

This commit is contained in:
zipg authored and GitHub committed 2026-07-28 01:17:37 +08:00
1 parent 1672d64619
commit d163136b6f
3 files changed
+83 -1

No files matched your search

@@ -1705,7 +1705,7 @@ function oraclePlSqlBlockIsComplete(sql: string): boolean {
if (token.kind !== "word") continue;
if (token.value === "DECLARE") {
stack.push("DECLARATION");
if (stack[stack.length - 1] !== "DECLARATION") stack.push("DECLARATION");
continue;
}
if (token.value === "BEGIN") {