mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-04 13:46:37 +08:00
feat: redis支持工单流程审批
This commit is contained in:
@@ -124,7 +124,7 @@ func (d *Db) ExecSql(rc *req.Ctx) {
|
||||
for _, s := range sqls {
|
||||
s = stringx.TrimSpaceAndBr(s)
|
||||
// 多条执行,暂不支持查询语句
|
||||
if isMulti {
|
||||
if isMulti && len(s) > 10 {
|
||||
biz.IsTrue(!strings.HasPrefix(strings.ToLower(s[:10]), "select"), "多条语句执行暂不不支持select语句")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user