This commit is contained in:
thinkphp
2018-08-23 17:10:37 +08:00

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