This commit is contained in:
2023-04-01 00:29:28 +08:00
parent f17b163f83
commit 0f911db7ee
+1 -1
View File
@@ -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);