This commit is contained in:
2023-04-07 18:50:02 +08:00
parent 5c24528957
commit b4041de60b
+3 -3
View File
@@ -248,9 +248,9 @@ class SqlBuilder extends Component
if (($condition = $this->conditionToString()) != '') { if (($condition = $this->conditionToString()) != '') {
$select .= " WHERE $condition"; $select .= " WHERE $condition";
} }
if (count($this->query->attributes) > 0) { // if (count($this->query->attributes) > 0) {
$select = strtr($select, $this->query->attributes); // $select = strtr($select, $this->query->attributes);
} // }
if ($this->query->group != "") { if ($this->query->group != "") {
$select .= ' GROUP BY ' . $this->query->group; $select .= ' GROUP BY ' . $this->query->group;
} }