From edc48f5dd21157938c72c7eb9e5926817e692260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 29 Sep 2021 17:55:27 +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 --- src/SqlBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SqlBuilder.php b/src/SqlBuilder.php index 115890b..ad16bf8 100644 --- a/src/SqlBuilder.php +++ b/src/SqlBuilder.php @@ -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]; }