This commit is contained in:
2023-12-13 17:25:40 +08:00
parent 1092273257
commit a1d42a0831
+1 -2
View File
@@ -178,11 +178,10 @@ class ActiveQuery extends QueryTrait implements ISqlBuilder
/** /**
* @param array $data * @param array $data
* @return bool * @return bool
* @throws
*/ */
public function insert(array $data): bool public function insert(array $data): bool
{ {
[$sql, $params] = $this->builder->insert($data, TRUE); [$sql, $params] = $this->builder->insert($data, isset($data[0]));
return (bool)$this->buildCommand($sql, $params)->exec(); return (bool)$this->buildCommand($sql, $params)->exec();
} }