We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
#1715
如果select distinct col1,col2... from tb ,这种情况count还是有问题。 即 queryBlock.getSelectList().size()大于1的情况。
if (option == SQLSetQuantifier.DISTINCT && queryBlock.getSelectList().size() == 1) { SQLSelectItem firstItem = queryBlock.getSelectList().get(0); SQLAggregateExpr exp = new SQLAggregateExpr("COUNT", SQLAggregateOption.DISTINCT); exp.addArgument(firstItem.getExpr()); firstItem.setExpr(exp); queryBlock.setDistionOption(0); }
The text was updated successfully, but these errors were encountered:
bug fixed for PageUtils. for issue #1715 #1803
aaa895a
https://github.com/alibaba/druid/releases/tag/1.1.1 问题已经修复,请使用新版本
Sorry, something went wrong.
No branches or pull requests
#1715
如果select distinct col1,col2... from tb ,这种情况count还是有问题。
即 queryBlock.getSelectList().size()大于1的情况。
if (option == SQLSetQuantifier.DISTINCT && queryBlock.getSelectList().size() == 1) {
SQLSelectItem firstItem = queryBlock.getSelectList().get(0);
SQLAggregateExpr exp = new SQLAggregateExpr("COUNT", SQLAggregateOption.DISTINCT);
exp.addArgument(firstItem.getExpr());
firstItem.setExpr(exp);
queryBlock.setDistionOption(0);
}
The text was updated successfully, but these errors were encountered: