变更
This commit is contained in:
+1
-1
@@ -256,7 +256,7 @@ class SqlBuilder extends Component
|
|||||||
if ($this->query->group != "") {
|
if ($this->query->group != "") {
|
||||||
$select .= ' GROUP BY ' . $this->query->group;
|
$select .= ' GROUP BY ' . $this->query->group;
|
||||||
}
|
}
|
||||||
if ($this->query->order != "") {
|
if (count($this->query->order) > 0) {
|
||||||
$select .= ' ORDER BY ' . implode(',', $this->query->order);
|
$select .= ' ORDER BY ' . implode(',', $this->query->order);
|
||||||
}
|
}
|
||||||
return $select . $this->builderLimit($this->query);
|
return $select . $this->builderLimit($this->query);
|
||||||
|
|||||||
Reference in New Issue
Block a user