colname add ``

给导出列名添加``符
This commit is contained in:
xxj
2021-02-19 18:03:04 +08:00
parent ea7c73db90
commit 0e2a3e4553
4 changed files with 7 additions and 5 deletions

View File

@@ -189,7 +189,7 @@ func GenFListIndex(info FList, status int) string {
{
var strs []string
for _, v := range info.Kem {
strs = append(strs, fmt.Sprintf("%v = ?", v.ColName))
strs = append(strs, fmt.Sprintf("`%v` = ?", v.ColName))
}
return strings.Join(strs, " AND ")
}