From 574451ffafa1427e4912813e457c611cbb930140 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 18 Aug 2018 22:56:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3whereRaw=E6=96=B9=E6=B3=95?= 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 c39ed945..8c875685 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 . ' ( ' . $field . ' ' . $value->getValue() . ' )'; + $str[] = ' ' . $key . ' ( ' . $value->getValue() . ' )'; } elseif ($value instanceof \Closure) { // 使用闭包查询 $query = new Query($this->connection);