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

Remove Parser.readIfOr()

上级 6ba5a956
......@@ -3542,19 +3542,6 @@ public class Parser {
return false;
}
/*
* Reads passed token in list, in order and returns true on first match.
* If none of the token matches returns false
*/
private boolean readIfOr(String... tokens) {
for (String token: tokens) {
if (readIf(token)) {
return true;
}
}
return false;
}
/*
* Reads every token in list, in order - returns true if all are found.
* If any are not found, returns false - AND resets parsing back to state when called.
......@@ -4490,7 +4477,9 @@ public class Parser {
}
original += "(" + p;
// Oracle syntax
readIfOr("CHAR", "BYTE");
if (!readIf("CHAR")) {
readIf("BYTE");
}
if (dataType.supportsScale) {
if (readIf(",")) {
scale = readInt();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论