改名
This commit is contained in:
@@ -147,11 +147,7 @@ class SqlBuilder extends Component
|
|||||||
*/
|
*/
|
||||||
private function _prefix($hasOrder = false): string
|
private function _prefix($hasOrder = false): string
|
||||||
{
|
{
|
||||||
$select = $this->builderSelect($this->query->select);
|
$select = $this->builderSelect($this->query->select) . ' FROM ' . $this->tableName();
|
||||||
if (is_array($select)) {
|
|
||||||
$select = implode(',', $select);
|
|
||||||
}
|
|
||||||
$select = 'SELECT ' . $select . ' FROM ' . $this->tableName();
|
|
||||||
if (!empty($condition = $this->conditionToString())) {
|
if (!empty($condition = $this->conditionToString())) {
|
||||||
$select = sprintf('%s %s', $select, $condition);
|
$select = sprintf('%s %s', $select, $condition);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user