提交 46b7cd0f authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Do not invoke StringUtils.cache() twice per string

上级 3d2a4988
...@@ -4460,8 +4460,7 @@ public class Parser { ...@@ -4460,8 +4460,7 @@ public class Parser {
} }
currentToken = "'"; currentToken = "'";
checkLiterals(true); checkLiterals(true);
currentValue = ValueString.get(StringUtils.cache(result), currentValue = ValueString.get(result, database.getMode().treatEmptyStringsAsNull);
database.getMode().treatEmptyStringsAsNull);
parseIndex = i; parseIndex = i;
currentTokenType = VALUE; currentTokenType = VALUE;
return; return;
...@@ -4474,8 +4473,7 @@ public class Parser { ...@@ -4474,8 +4473,7 @@ public class Parser {
String result = sqlCommand.substring(begin, i); String result = sqlCommand.substring(begin, i);
currentToken = "'"; currentToken = "'";
checkLiterals(true); checkLiterals(true);
currentValue = ValueString.get(StringUtils.cache(result), currentValue = ValueString.get(result, database.getMode().treatEmptyStringsAsNull);
database.getMode().treatEmptyStringsAsNull);
parseIndex = i; parseIndex = i;
currentTokenType = VALUE; currentTokenType = VALUE;
return; return;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论