bug fixed for SchemaStatVisitor. for issue #2303

This commit is contained in:
wenshao
2018-02-04 13:59:16 +08:00
parent 9ff64e48ed
commit 7ced410228
2 changed files with 59 additions and 0 deletions
@@ -833,6 +833,9 @@ public class SQLUtils {
char x0 = name.charAt(name.length() - 1);
if ((c0 == '"' && x0 == '"') || (c0 == '`' && x0 == '`')) {
String normalizeName = name.substring(1, name.length() - 1);
if (c0 == '`') {
normalizeName = normalizeName.replaceAll("`\\.`", ".");
}
if (JdbcConstants.ORACLE.equals(dbType)) {
if (OracleUtils.isKeyword(normalizeName)) {