diff --git a/pkg/sqlio/scanner.go b/pkg/sqlio/scanner.go index e545a10..600dd7c 100644 --- a/pkg/sqlio/scanner.go +++ b/pkg/sqlio/scanner.go @@ -58,7 +58,8 @@ func (s *Scanner) Scan() bool { return false } for s.scanner.Scan() { - s.sql = strings.Trim(s.scanner.Text(), " \r\n;") + s.sql = strings.TrimSpace(s.scanner.Text()) + s.sql = strings.Trim(s.sql, ";") if s.sql == "" { continue }