Merge remote-tracking branch 'upstream/master'

This commit is contained in:
wenshao
2013-07-30 16:45:24 +08:00
5 changed files with 11 additions and 9 deletions
@@ -323,7 +323,9 @@ public class PagerUtils {
SQLSelectItem countItem = createCountItem(dbType);
countSelectQuery.getSelectList().add(countItem);
countSelectQuery.setFrom(new SQLSubqueryTableSource(select));
SQLSubqueryTableSource fromSubquery = new SQLSubqueryTableSource(select);
fromSubquery.setAlias("ALIAS_COUNT");
countSelectQuery.setFrom(fromSubquery);
SQLSelect countSelect = new SQLSelect(countSelectQuery);
SQLSelectStatement countStmt = new SQLSelectStatement(countSelect);