Skip to content

Commit

Permalink
refactor parseSelectList 3rd version
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Aug 11, 2017
1 parent 60e4c57 commit 12cd049
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected Collection<Keyword> getCustomizedDistinctKeywords() {
}

@Override
protected Keyword[] getSkipKeyWordBeforeSelectItem() {
protected Keyword[] getSkipKeywordsBeforeSelectItem() {
return new Keyword[] {OracleKeyword.CONNECT_BY_ROOT};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private void parseSelectItem() {
selectStatement.getItems().add(parseRowNumberSelectItem());
return;
}
sqlParser.skipIfEqual(getSkipKeyWordBeforeSelectItem());
sqlParser.skipIfEqual(getSkipKeywordsBeforeSelectItem());
String literals = sqlParser.getLexer().getCurrentToken().getLiterals();
if (isStarSelectItem(literals)) {
selectStatement.getItems().add(parseStarSelectItem());
Expand Down Expand Up @@ -166,7 +166,7 @@ private void parseSelectItem() {
selectStatement.getItems().add(new CommonSelectItem(SQLUtil.getExactlyValue(expression.toString()), sqlParser.parseAlias()));
}

protected Keyword[] getSkipKeyWordBeforeSelectItem() {
protected Keyword[] getSkipKeywordsBeforeSelectItem() {
return new Keyword[0];
}

Expand Down

0 comments on commit 12cd049

Please sign in to comment.