Skip to content

Commit

Permalink
1.修复数据库名称含有中横线选择失败
Browse files Browse the repository at this point in the history
2.修复消息推送没有工单说明的问题
  • Loading branch information
cookieY committed Aug 23, 2022
1 parent 7ef05b8 commit ad39273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handler/personal/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (m *MultiSQLRunner) Run(db *sqlx.DB, schema string) (*Query, error) {
if db == nil {
return nil, errors.New("数据库连接失败!")
}
db.Exec(fmt.Sprintf("use %s", schema))
db.Exec(fmt.Sprintf("use `%s`", schema))
rows, err := db.Queryx(m.SQL)

if err != nil {
Expand Down

0 comments on commit ad39273

Please sign in to comment.