mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 15:42:48 +08:00
改进
This commit is contained in:
@@ -296,7 +296,7 @@ abstract class Builder
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$bindType = isset($binds[$field]) ? $binds[$field] : PDO::PARAM_STR;
|
$bindType = isset($binds[$field]) ? $binds[$field] : PDO::PARAM_STR;
|
||||||
if (is_scalar($value) && array_key_exists($field, $binds) && !in_array($exp, ['IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN']) && strpos($exp, 'TIME') === 0 && strpos($value, ':') !== 0 && !$this->query->isBind($field)) {
|
if (is_scalar($value) && array_key_exists($field, $binds) && !in_array($exp, ['IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN']) && strpos($exp, 'TIME') === false && strpos($value, ':') !== 0 && !$this->query->isBind($field)) {
|
||||||
$this->query->bind($field, $value, $bindType);
|
$this->query->bind($field, $value, $bindType);
|
||||||
$value = ':' . $field;
|
$value = ':' . $field;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user