Browse Source

fmt

pull/7185/head
chrislu 1 month ago
parent
commit
eb03d05c97
  1. 4
      weed/command/sql.go

4
weed/command/sql.go

@ -47,12 +47,12 @@ func splitSQLStatements(query string) []string {
continue continue
} }
// Handle multi-line comments (/* comment */)
// Handle multi-line comments (/* comment */)
if char == '/' && i+1 < len(runes) && runes[i+1] == '*' { if char == '/' && i+1 < len(runes) && runes[i+1] == '*' {
// Skip the /* opening // Skip the /* opening
i++ i++
i++ i++
// Skip to end of comment or end of input without including content // Skip to end of comment or end of input without including content
for i < len(runes) { for i < len(runes) {
if runes[i] == '*' && i+1 < len(runes) && runes[i+1] == '/' { if runes[i] == '*' && i+1 < len(runes) && runes[i+1] == '/' {

Loading…
Cancel
Save