Skip to content

Commit 6ab1d6b

Browse files
fix problem
1 parent 6029859 commit 6ab1d6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/mysql/mysql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ func (m *Mysql) Version() (version int, dirty bool, err error) {
411411

412412
func (m *Mysql) Drop() (err error) {
413413
// select all tables
414-
query := fmt.Sprintf("SHOW TABLES FROM `%s` LIKE '%'", m.config.DatabaseName)
414+
query := fmt.Sprintf("SHOW TABLES FROM `%s`", m.config.DatabaseName)
415415
tables, err := m.conn.QueryContext(context.Background(), query)
416416
if err != nil {
417417
return &database.Error{OrigErr: err, Query: []byte(query)}

0 commit comments

Comments
 (0)