Skip to content

Commit

Permalink
fix(mysql): 清档缺少反引号 #6585
Browse files Browse the repository at this point in the history
  • Loading branch information
xfwduke authored and zhangzhw8 committed Sep 2, 2024
1 parent a85cedd commit 75fb023
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func CreateDB(conn *sqlx.Conn, dbName string) error {

_, err := conn.ExecContext(
ctx,
fmt.Sprintf("CREATE DATABASE IF NOT EXISTS %s", dbName),
fmt.Sprintf("CREATE DATABASE IF NOT EXISTS `%s`", dbName),
)
return err
}

0 comments on commit 75fb023

Please sign in to comment.