This commit is contained in:
2021-09-02 14:20:31 +08:00
parent 3ae61ef3fb
commit 6ac2cdbf53
+6 -2
View File
@@ -823,8 +823,12 @@ trait QueryTrait
$this->where[] = $this->makeClosureFunction($column);
return $this;
}
[$column, $opera, $value] = $this->opera(...func_get_args());
$this->where[] = "$column $opera $value";
if (is_string($column)) {
$this->where[] = $column;
} else {
[$column, $opera, $value] = $this->opera(...func_get_args());
$this->where[] = "$column $opera $value";
}
return $this;
}