mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
完善Builder类
This commit is contained in:
@@ -228,7 +228,7 @@ abstract class Builder
|
|||||||
foreach ($where as $key => $val) {
|
foreach ($where as $key => $val) {
|
||||||
$str = [];
|
$str = [];
|
||||||
foreach ($val as $field => $value) {
|
foreach ($val as $field => $value) {
|
||||||
if (in_array($field, $fields, true) && is_scalar($value) && !$this->query->isBind($field)) {
|
if ($fields && in_array($field, $fields, true) && is_scalar($value) && !$this->query->isBind($field)) {
|
||||||
$this->query->bind($field, $value, isset($binds[$field]) ? $binds[$field] : PDO::PARAM_STR);
|
$this->query->bind($field, $value, isset($binds[$field]) ? $binds[$field] : PDO::PARAM_STR);
|
||||||
$value = ':' . $field;
|
$value = ':' . $field;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user