This commit is contained in:
2021-02-25 16:45:04 +08:00
parent 7fde709b60
commit 116f72f86b
+1 -5
View File
@@ -147,11 +147,7 @@ class SqlBuilder extends Component
*/
private function _prefix($hasOrder = false): string
{
$select = $this->builderSelect($this->query->select);
if (is_array($select)) {
$select = implode(',', $select);
}
$select = 'SELECT ' . $select . ' FROM ' . $this->tableName();
$select = $this->builderSelect($this->query->select) . ' FROM ' . $this->tableName();
if (!empty($condition = $this->conditionToString())) {
$select = sprintf('%s %s', $select, $condition);
}