提交 920bf118 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Inline Parser.isSimpleIdentifier()

上级 555e9ecc
......@@ -6771,24 +6771,12 @@ public class Parser {
if (s == null) {
return "\"\"";
}
if (isSimpleIdentifier(s, false)) {
if (ParserUtil.isSimpleIdentifier(s, false)) {
return s;
}
return StringUtils.quoteIdentifier(s);
}
/**
* 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) {
return ParserUtil.isSimpleIdentifier(s, functionsAsKeywords);
}
public void setLiteralsChecked(boolean literalsChecked) {
this.literalsChecked = literalsChecked;
}
......
......@@ -35,7 +35,7 @@ public class ParserUtil {
/**
* The token "rownum".
*/
public static final int ROWNUM = 6;
public static final int ROWNUM = 6;
private ParserUtil() {
// utility class
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论