This commit is contained in:
2023-12-13 18:07:39 +08:00
parent b490e85a34
commit 89592ff638
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -119,7 +119,7 @@ class SqlBuilder extends Component
* @return array
* @throws
*/
public function insert(array $attributes, bool $isBatch = false): array
public function insert(array $attributes, bool $isBatch = false): string
{
$update = 'INSERT INTO ' . $this->query->from;
if ($isBatch === false) {
@@ -133,7 +133,7 @@ class SqlBuilder extends Component
$keys[] = implode(',', $_keys);
}
return [$update . '(' . implode('),(', $keys) . ')', $this->query->params];
return $update . '(' . implode('),(', $keys) . ')';
}