This commit is contained in:
2023-04-20 23:22:53 +08:00
parent eedfbb900e
commit 711750dba3
+2 -2
View File
@@ -208,7 +208,7 @@ class SqlBuilder extends Component
if (count($this->query->select) < 1) { if (count($this->query->select) < 1) {
$this->query->select = ['*']; $this->query->select = ['*'];
} }
return $this->_selectPrefix() . $this->_prefix() . $this->builderLimit($this->query); return $this->_selectPrefix($this->query->select) . $this->_prefix() . $this->builderLimit($this->query);
} }
@@ -221,7 +221,7 @@ class SqlBuilder extends Component
if (count($this->query->select) < 1) { if (count($this->query->select) < 1) {
$this->query->select = ['*']; $this->query->select = ['*'];
} }
return $this->_selectPrefix() . $this->_prefix() . $this->builderLimit($this->query); return $this->_selectPrefix($this->query->select) . $this->_prefix() . $this->builderLimit($this->query);
} }