From 2153481f697eff5e451fe064bb75fae530ac2e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 7 Apr 2023 18:56:17 +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 92536f9..4b6394a 100644 --- a/Traits/QueryTrait.php +++ b/Traits/QueryTrait.php @@ -682,7 +682,7 @@ trait QueryTrait if (count($value) < 1) { $value = [-1]; } - $this->bindParam(':in' . $columns, $value); + $this->bindParam(':in' . $columns, implode(',', $value)); $this->where[] = $columns . ' IN :in' . $columns; return $this; } @@ -724,7 +724,7 @@ trait QueryTrait if (count($value) < 1) { $value = [-1]; } - $this->bindParam(':notin' . $columns, $value); + $this->bindParam(':notin' . $columns, implode(',', $value)); $this->where[] = $columns . ' NOT IN :notin' . $columns; return $this; }