这个需要创建到PMS上, 因为QA那边暂时没有使用github啊

On Apr 28, 2014, at 6:04 PM, Rui Ma <notifications@github.com> wrote:

> In libraries/q/query.php:
> 
> > @@ -658,17 +658,21 @@ function makeSQL() {
> >  
> >  			$SQL = trim($SQL);
> >  
> > -			if ($this->union) {
> > -				$SQL = '('.$SQL.') UNION ('.implode(') UNION (', $this->union).')';
> > -				$count_SQL = 'SELECT COUNT(*) count FROM ('.$SQL.') union_table';
> > +            if ($this->union) {
> > +                $SQL = '('.$SQL.') UNION ('.implode(') UNION (', $this->union).')';
> > +                $count_SQL = 'SELECT COUNT(*) count FROM ('.$SQL.') union_table';
> 针对total_count() 的问题在这次pull request中应该已正常修正。
> 
> 我会再创建一个issue去说明:union的问题
> 
> —
> Reply to this email directly or view it on GitHub.
>