From c4d20abebcd3ca391116311cabfc7507333dc410 Mon Sep 17 00:00:00 2001 From: CHIKAMATSU Naohiro Date: Mon, 7 Nov 2022 08:41:40 +0900 Subject: [PATCH] Fixed a bug that caused SQL to fail if there was a trailing semicolon --- shell/shell.go | 1 + 1 file changed, 1 insertion(+) diff --git a/shell/shell.go b/shell/shell.go index 09b347e..1f955f4 100644 --- a/shell/shell.go +++ b/shell/shell.go @@ -182,6 +182,7 @@ func (s *Shell) exec() error { } func (s *Shell) execSQL(req string) error { + req = strings.TrimRight(req, ";") table, affectedRows, err := s.sqlite3Interactor.ExecSQL(s.Ctx, req, s.argument.Output.Mode) if err != nil { return err