mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for SchemaStatVisitor. for issue #2303
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user