-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow expressions based on DISTINCT values in ORDER BY
- Loading branch information
Showing
4 changed files
with
128 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -407,4 +407,15 @@ public int getCost() { | |
return left.getCost() + 1 + (right == null ? 0 : right.getCost()); | ||
} | ||
|
||
/** | ||
* Get the left or the right sub-expression of this condition. | ||
* | ||
* @param getLeft true to get the left sub-expression, false to get the | ||
* right sub-expression. | ||
* @return the sub-expression | ||
*/ | ||
public Expression getExpression(boolean getLeft) { | ||
This comment has been minimized.
Sorry, something went wrong.
grandinj
Contributor
|
||
return getLeft ? this.left : right; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a comment as to the purpose of this method would be nice