未验证 提交 8cfb07f0 编写于 作者: L ljcoder 提交者: GitHub

数据库名称如何存在中划线"-"情况下,SQL执行异常 (#3228)

Co-authored-by: Nliguowang <liguowang@aerozhonghaun.com>
上级 d7414258
......@@ -262,9 +262,9 @@ public class SyncUtil {
public static String getDbTableName(MappingConfig.DbMapping dbMapping) {
String result = "";
if (StringUtils.isNotEmpty(dbMapping.getTargetDb())) {
result += dbMapping.getTargetDb() + ".";
result += ("`" + dbMapping.getTargetDb() + "`.");
}
result += dbMapping.getTargetTable();
result += ("`" + dbMapping.getTargetTable() + "`");
return result;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册