refactor: 新增达梦图标、调整前端DbDialect接口

This commit is contained in:
meilin.huang
2023-12-07 11:48:17 +08:00
parent 2430c4f6aa
commit 1db990b554
14 changed files with 117 additions and 74 deletions

View File

@@ -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)