fix: handle dollar-quoting and comments when splitting SQL statements

This commit is contained in:
Diego Imbert
2026-07-03 21:18:14 +02:00
parent 38d4446be3
commit 150a96363d
+3 -1
View File
@@ -78,8 +78,10 @@ export function splitSqlStatements(code: string): string[] {
continue
}
if (char === '/' && nextChar === '*') {
// Consume both chars so the '*' of '/*' can't double as a '*/' close.
inBlockComment = true
currentStatement += char
currentStatement += '/*'
i += 1
continue
}
if (char === '$') {