mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进数组查询条件中的null查询
This commit is contained in:
@@ -302,7 +302,7 @@ abstract class Builder
|
|||||||
|
|
||||||
// 查询规则和条件
|
// 查询规则和条件
|
||||||
if (!is_array($val)) {
|
if (!is_array($val)) {
|
||||||
$val = ['=', $val];
|
$val = is_null($val) ? ['null', ''] : ['=', $val];
|
||||||
}
|
}
|
||||||
list($exp, $value) = $val;
|
list($exp, $value) = $val;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user