From 998bc78a00acb811f6d0910d797256c021d3bd16 Mon Sep 17 00:00:00 2001 From: Yurun Date: Wed, 15 May 2024 20:20:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20postWhere=20=E9=97=AD?= =?UTF-8?q?=E5=8C=85=E8=BF=94=E5=9B=9E=20IWhereCollector=20=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E6=97=B6=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Db/Query/Where/WhereBrackets.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Db/Query/Where/WhereBrackets.php b/src/Db/Query/Where/WhereBrackets.php index 544e0bea3..30d1f37bd 100644 --- a/src/Db/Query/Where/WhereBrackets.php +++ b/src/Db/Query/Where/WhereBrackets.php @@ -8,6 +8,7 @@ use Imi\Db\Query\Interfaces\IBaseWhere; use Imi\Db\Query\Interfaces\IQuery; use Imi\Db\Query\Interfaces\IWhereBrackets; +use Imi\Db\Query\Interfaces\IWhereCollector; use Imi\Db\Query\Traits\TRaw; use Imi\Db\Query\WhereCollector; @@ -97,7 +98,7 @@ public function toStringWithoutLogic(IQuery $query): string return '(' . $result . ')'; } - elseif (null === $callResult) + elseif (null === $callResult || $callResult instanceof IWhereCollector) { $result = '('; foreach ([