mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 23:40:24 +08:00
[fix] issue: I7E6QQ的缺陷修复
This commit is contained in:
@@ -142,7 +142,8 @@ func (d *Db) ExecSql(rc *req.Ctx) {
|
||||
LoginAccount: rc.LoginAccount,
|
||||
}
|
||||
|
||||
sqls := strings.Split(sql, ";\n")
|
||||
sqls, err := sqlparser.SplitStatementToPieces(sql)
|
||||
biz.ErrIsNil(err, "SQL解析错误,请检查您的执行SQL")
|
||||
isMulti := len(sqls) > 1
|
||||
var execResAll *application.DbSqlExecRes
|
||||
for _, s := range sqls {
|
||||
|
||||
Reference in New Issue
Block a user