Skip to content

Commit e8741d0

Browse files
committed
Fix sql
1 parent c0de4db commit e8741d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/metatosql.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ func (c *CLI) MetaToSQL(metaCommand string) (string, error) {
2222
switch metaCommandArr[0] {
2323
case "dt":
2424
if len(metaCommandArr) >= 2 {
25-
expression = "SHOW TABLES FROM " + metaCommandArr[1]
25+
expression = "SHOW TABLES FROM " + metaCommandArr[1] + ";"
2626
} else {
2727
return "", ErrArgumentNotProvided
2828
}
2929
case "l":
30-
expression = "SHOW DATABASES"
30+
expression = "SHOW DATABASES;"
3131
default:
3232
return "", ErrInvalidMetaCommand
3333
}

0 commit comments

Comments
 (0)