mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
refactor: 新增达梦图标、调整前端DbDialect接口
This commit is contained in:
@@ -115,7 +115,7 @@ func (d *Db) ExecSql(rc *req.Ctx) {
|
||||
ctx := rc.MetaCtx
|
||||
// 如果存在执行id,则保存取消函数,用于后续可能的取消操作
|
||||
if form.ExecId != "" {
|
||||
cancelCtx, cancel := context.WithCancel(rc.MetaCtx)
|
||||
cancelCtx, cancel := context.WithTimeout(rc.MetaCtx, 55*time.Second)
|
||||
ctx = cancelCtx
|
||||
cancelExecSqlMap.Store(form.ExecId, cancel)
|
||||
defer cancelExecSqlMap.Delete(form.ExecId)
|
||||
|
||||
Reference in New Issue
Block a user