From 655e6fb38fe60bf1338f05f05dea63bca563d552 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 31 Aug 2016 17:52:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BQuery=E7=B1=BB=E7=9A=84?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index a88fc13d..d42b83c5 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -908,9 +908,7 @@ class Query $where = $field; } elseif ($field) { // 字符串查询 - $where[] = ['exp', $field]; - } else { - $where = ''; + $where[$field] = ['null', '']; } } elseif (is_array($op)) { $where[$field] = $param;