mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
修正Builder类的selectinsert方法
This commit is contained in:
@@ -612,8 +612,7 @@ abstract class Builder
|
|||||||
}
|
}
|
||||||
|
|
||||||
$fields = array_map([$this, 'parseKey'], $fields);
|
$fields = array_map([$this, 'parseKey'], $fields);
|
||||||
$sql = 'INSERT INTO ' . $this->parseTable($table) . ' (' . implode(',', $fields) . ') ';
|
$sql = 'INSERT INTO ' . $this->parseTable($table) . ' (' . implode(',', $fields) . ') ' . $this->select($options);
|
||||||
$sql .= $this->buildSelectSql($options);
|
|
||||||
return $sql;
|
return $sql;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user