From a1d42a0831a2c32860d93cad10e0b6dcfae2efc5 Mon Sep 17 00:00:00 2001 From: whwyy Date: Wed, 13 Dec 2023 17:25:40 +0800 Subject: [PATCH] eee --- ActiveQuery.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ActiveQuery.php b/ActiveQuery.php index 5715acf..25cbf21 100644 --- a/ActiveQuery.php +++ b/ActiveQuery.php @@ -178,11 +178,10 @@ class ActiveQuery extends QueryTrait implements ISqlBuilder /** * @param array $data * @return bool - * @throws */ 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(); }