Skip to content

Commit

Permalink
Merge pull request #10 from nao1215/delete-last-semi-colon
Browse files Browse the repository at this point in the history
Fixed a bug that caused SQL to fail if there was a trailing semicolon
  • Loading branch information
nao1215 authored Nov 6, 2022
2 parents 0d450dd + c4d20ab commit c58e896
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c58e896

Please sign in to comment.