什么问题? 语句不对吗?

On Apr 28, 2014, at 5:52 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';
> 在无$this->union时候，可正常配合得上。
> 但是有$this->union时候，无法正常配合。
> 本身 :union() 的功能就是有问题的。
> 
> —
> Reply to this email directly or view it on GitHub.
>