This commit is contained in:
2021-09-29 17:55:27 +08:00
parent 2bd723775e
commit edc48f5dd2
+1 -1
View File
@@ -116,7 +116,7 @@ class SqlBuilder extends Component
*/
public function insert(array $attributes, bool $isBatch = false): array
{
$update = sprintf('INSERT INTO %s', $this->tableName());
$update = 'INSERT INTO ' . $this->tableName();
if ($isBatch === false) {
$attributes = [$attributes];
}