Skip to content

Commit

Permalink
Improve statements splitter
Browse files Browse the repository at this point in the history
Allow splitting by lower or upper splitter.
  • Loading branch information
iamralch committed Jul 28, 2021
1 parent 720c82b commit ee63c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlexec/splitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"regexp"
)

var separatorRgxp = regexp.MustCompile(`^[\s]*[-]*[\s]*GO[;]*\s*`)
var separatorRgxp = regexp.MustCompile(`^[\s]*[-]*[\s]*(?i)go[;]*\s*`)

// Splitter splits a statement by GO separator
type Splitter struct{}
Expand Down

0 comments on commit ee63c52

Please sign in to comment.