From 5e4beed63c2dac47118b54b19346d82f1c41cefa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 25 Apr 2023 22:11:40 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Traits/QueryTrait.php b/Traits/QueryTrait.php index 490bd20..40bd3c5 100644 --- a/Traits/QueryTrait.php +++ b/Traits/QueryTrait.php @@ -639,7 +639,7 @@ trait QueryTrait $value = [-1]; } $this->bindParam(':in' . $columns, implode(',', $value)); - $this->where[] = $columns . ' IN :in' . $columns; + $this->where[] = $columns . ' IN (:in' . $columns . ')'; return $this; } @@ -681,7 +681,7 @@ trait QueryTrait $value = [-1]; } $this->bindParam(':notin' . $columns, implode(',', $value)); - $this->where[] = $columns . ' NOT IN :notin' . $columns; + $this->where[] = $columns . ' NOT IN (:notin' . $columns . ')'; return $this; }