提交 2f55c6cf authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Add Javadoc

上级 b4fb5f79
...@@ -499,6 +499,18 @@ public abstract class Query extends Prepared { ...@@ -499,6 +499,18 @@ public abstract class Query extends Prepared {
} }
} }
/**
* An additional check for expression in ORDER BY list for DISTINCT selects
* that was not matched with selected expressions in regular way. This
* method allows expressions based only on selected expressions in different
* complicated ways with functions, comparisons, or operators.
*
* @param session session
* @param expr expression to check
* @param expressionSQL SQL of allowed expressions
* @return whether the specified expression should be allowed in ORDER BY
* list of DISTINCT select
*/
private static boolean checkOrderOther(Session session, Expression expr, ArrayList<String> expressionSQL) { private static boolean checkOrderOther(Session session, Expression expr, ArrayList<String> expressionSQL) {
if (expr.isConstant()) { if (expr.isConstant()) {
return true; return true;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论