Skip to content

Commit

Permalink
Override base method
Browse files Browse the repository at this point in the history
instead of VirtualColumnNode having it's own method, just override
the one from ValueNode.
  • Loading branch information
ScottDugas committed Jan 5, 2015
1 parent 548e91f commit 6cf0d31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,8 @@ public ResultSetNode getSourceResultSet() {
return sourceResultSet;
}

/**
* Return the ResultColumn that is the source of this VirtualColumnNode.
*
* @return ResultColumn
*/
public ResultColumn getSourceColumn() {
@Override
public ResultColumn getSourceResultColumn() {
return sourceColumn;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ private static Set<String> getReservedWords() {
}

protected String virtualColumnNode(VirtualColumnNode node) throws StandardException {
return maybeQuote(node.getSourceColumn().getName());
return maybeQuote(node.getSourceResultColumn().getName());
}

protected String groupByList(GroupByList node) throws StandardException {
Expand Down

0 comments on commit 6cf0d31

Please sign in to comment.