mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-19 00:03:19 +00:00
fix: handle dollar-quoting and comments when splitting SQL statements
This commit is contained in:
@@ -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 === '$') {
|
||||
|
||||
Reference in New Issue
Block a user