From 8529a8eb0d23c4bda9342a4dbf82e274f4b33aeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 25 Apr 2023 22:48:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Traits/QueryTrait.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Traits/QueryTrait.php b/Traits/QueryTrait.php index 40bd3c5..04d40c3 100644 --- a/Traits/QueryTrait.php +++ b/Traits/QueryTrait.php @@ -638,8 +638,7 @@ trait QueryTrait if (count($value) < 1) { $value = [-1]; } - $this->bindParam(':in' . $columns, implode(',', $value)); - $this->where[] = $columns . ' IN (:in' . $columns . ')'; + $this->where[] = $columns . ' IN (' . implode(',', $value) . ')'; return $this; } @@ -680,8 +679,7 @@ trait QueryTrait if (count($value) < 1) { $value = [-1]; } - $this->bindParam(':notin' . $columns, implode(',', $value)); - $this->where[] = $columns . ' NOT IN (:notin' . $columns . ')'; + $this->where[] = $columns . ' NOT IN (' . implode(',', $value) . ')'; return $this; }