Skip to content

Commit

Permalink
fix trim on windows os
Browse files Browse the repository at this point in the history
  • Loading branch information
raoptimus committed Oct 9, 2024
1 parent 2862fc8 commit 6f56cf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/sqlio/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6f56cf4

Please sign in to comment.