mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser.
This commit is contained in:
@@ -45,6 +45,14 @@ public class SQLIdentifierExpr extends SQLExprImpl implements SQLName {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getLowerName() {
|
||||
if (name == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return name.toLowerCase();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
@@ -36,9 +36,6 @@ public class SQLPropertyExpr extends SQLExprImpl implements SQLName {
|
||||
}
|
||||
|
||||
public SQLPropertyExpr(SQLExpr owner, String name){
|
||||
if (name == null) {
|
||||
throw new IllegalArgumentException("name is null.");
|
||||
}
|
||||
setOwner(owner);
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user