From 0d2d1db64c3b0aa3a1295e1d6aa7eaaa25b5165d Mon Sep 17 00:00:00 2001 From: Leon Zhang Date: Sun, 24 Jan 2021 23:47:45 +0800 Subject: [PATCH] fix #266 --- advisor/rules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advisor/rules.go b/advisor/rules.go index b021eed..67e9d77 100644 --- a/advisor/rules.go +++ b/advisor/rules.go @@ -1073,7 +1073,7 @@ func init() { Item: "STA.003", Severity: "L1", Summary: "索引起名不规范", - Content: `建议普通二级索引以idx_为前缀,唯一索引以uk_为前缀。`, + Content: `建议普通二级索引以` + common.Config.IdxPrefix + `为前缀,唯一索引以` + common.Config.UkPrefix + `为前缀。`, Case: "select col from now where type!=0", Func: (*Query4Audit).RuleIdxPrefix, }, -- GitLab