From ac0a9721efaa38203407b619400f01840ef7ad5c Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 7 May 2018 22:29:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E6=9F=A5=E8=AF=A2?= 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 825d54b2..a841dba2 100644 --- a/library/think/db/Builder.php +++ b/library/think/db/Builder.php @@ -268,7 +268,7 @@ abstract class Builder $str = []; foreach ($val as $field => $value) { if ($value instanceof Expression) { - $str[] = ' ' . $key . ' ( ' . $value->getValue() . ' )'; + $str[] = ' ' . $key . ' ( ' . $field . ' ' . $value->getValue() . ' )'; continue; } if ($value instanceof \Closure) {