|
@@ -43,8 +43,8 @@ |
|
|
block discarded – undo |
|
43
|
43
|
$sql = 'SELECT '; |
|
44
|
44
|
$sql .= !is_null($this->limit) ? 'FIRST ? SKIP ? ' : ''; |
|
45
|
45
|
$sql .= $this->distinct ? 'DISTINCT ' : ''; |
|
46
|
|
- $sql .= !empty($this->cols) ? implode($glue , $this->cols).PHP_EOL : '* '; |
|
47
|
|
- $sql .= 'FROM '.implode($glue , $this->from); |
|
|
46
|
+ $sql .= !empty($this->cols) ? implode($glue, $this->cols).PHP_EOL : '* '; |
|
|
47
|
+ $sql .= 'FROM '.implode($glue, $this->from); |
|
48
|
48
|
$sql .= $this->_getWhere(); |
|
49
|
49
|
$sql .= !empty($this->groupby) ? PHP_EOL.'GROUP BY '.implode($glue, $this->groupby) : ''; |
|
50
|
50
|
$sql .= !empty($this->orderby) ? PHP_EOL.'ORDER BY '.implode($glue, $this->orderby) : ''; |
Please login to merge, or discard this patch.