Skip to content

Commit c227f64

Browse files
committed
trim semi
1 parent e97b4a4 commit c227f64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ func sqlRunner(sql string, resultCh chan string, errCh chan error) (chan string,
6060
// executor executes command and print the output.
6161
func executor(in string) {
6262
s := strings.TrimSpace(in)
63+
s = strings.TrimSuffix(in, ";")
6364
if s == "" {
6465
return
6566
} else if s == "quit" || s == "exit" {

0 commit comments

Comments
 (0)