未验证 提交 e06e4018 编写于 作者: S Serge Rider 提交者: GitHub

Merge pull request #14386 from dbeaver/countDistinctMySQl#14369

#14369 do not all keyword for a statement with distinct
......@@ -114,8 +114,9 @@ public class SQLQueryTransformerCount implements SQLQueryTransformer {
if (!exprs.isEmpty()) {
countFunc.setParameters(new ExpressionList(exprs));
}
} else {
countFunc.setAllColumns(true);
}
countFunc.setAllColumns(true);
List<SelectItem> selectItems = new ArrayList<>();
selectItems.add(new SelectExpressionItem(countFunc));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册