修正whereRaw方法

This commit is contained in:
thinkphp
2018-08-18 22:56:43 +08:00
parent fa2d0a9838
commit 574451ffaf

View File

@@ -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);