提交 57791036 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Remove additional argument of ParserUtil.isSimpleIdentifier()

上级 fb5b206f
......@@ -6878,7 +6878,7 @@ public class Parser {
if (s == null) {
return "\"\"";
}
if (ParserUtil.isSimpleIdentifier(s, false)) {
if (ParserUtil.isSimpleIdentifier(s)) {
return s;
}
return StringUtils.quoteIdentifier(s);
......
......@@ -1405,7 +1405,7 @@ public class JdbcStatement extends TraceObject implements Statement, JdbcStateme
*/
@Override
public boolean isSimpleIdentifier(String identifier) throws SQLException {
return ParserUtil.isSimpleIdentifier(identifier, true);
return ParserUtil.isSimpleIdentifier(identifier);
}
/**
......
......@@ -58,11 +58,10 @@ public class ParserUtil {
* Is this a simple identifier (in the JDBC specification sense).
*
* @param s identifier to check
* @param functionsAsKeywords treat system functions as keywords
* @return is specified identifier may be used without quotes
* @throws NullPointerException if s is {@code null}
*/
public static boolean isSimpleIdentifier(String s, boolean functionsAsKeywords) {
public static boolean isSimpleIdentifier(String s) {
if (s.length() == 0) {
return false;
}
......@@ -78,7 +77,7 @@ public class ParserUtil {
return false;
}
}
return getSaveTokenType(s, functionsAsKeywords) == IDENTIFIER;
return getSaveTokenType(s, true) == IDENTIFIER;
}
/**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论