From e3a4faedbf04d046613a1c000d9733524bce59e9 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 17 Apr 2018 19:29:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E5=A4=84=E6=9C=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=8F=98=E9=87=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/Builder.php b/library/think/db/Builder.php index 6456b4bd..d761a4b5 100644 --- a/library/think/db/Builder.php +++ b/library/think/db/Builder.php @@ -266,7 +266,7 @@ abstract class Builder $str = []; foreach ($val as $field => $value) { if ($value instanceof Expression) { - $str[] = ' ' . $logic . ' ( ' . $value->getValue() . ' )'; + $str[] = ' ' . $key . ' ( ' . $value->getValue() . ' )'; continue; } if ($value instanceof \Closure) {