From 35d1025010f9de95bbdb219f263b4d75ecc93052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 25 Feb 2021 19:35:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/SqlBuilder.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Database/SqlBuilder.php b/Database/SqlBuilder.php index 46b18190..fb7ece63 100644 --- a/Database/SqlBuilder.php +++ b/Database/SqlBuilder.php @@ -96,11 +96,9 @@ class SqlBuilder extends Component public function insert(array $attributes, $isBatch = false): array { $update = sprintf('INSERT INTO %s', $this->tableName()); - if ($isBatch === true) { + if ($isBatch === false) { $attributes = [$attributes]; } - - var_dump($attributes); $update .= '(' . implode(',', $this->getFields($attributes)) . ') VALUES '; $order = 0;