fix: 修复table_prefix兼容性

This commit is contained in:
me262
2021-05-31 17:28:30 +08:00
parent add7017224
commit 78defd91d9
2 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ func GetTablePrefixName(name string) string { //
tablePrefix := config.GetTablePrefix()
//如果设置了表前缀
if tablePrefix != "" {
return fmt.Sprintf("%v.%v", tablePrefix, name)
name = tablePrefix + name
}
return name