diff --git a/library/think/db/Builder.php b/library/think/db/Builder.php index 45987515..3e43822d 100644 --- a/library/think/db/Builder.php +++ b/library/think/db/Builder.php @@ -84,13 +84,9 @@ abstract class Builder } elseif (is_null($val)) { $result[$item] = 'NULL'; } elseif (is_scalar($val)) { - if ($bindValue) { - // 过滤非标量数据 - $this->query->bind($key, $val, isset($bind[$key]) ? $bind[$key] : PDO::PARAM_STR); - $result[$item] = ':' . $key; - } else { - $result[$item] = $this->parseValue($val); - } + // 过滤非标量数据 + $this->query->bind($key, $val, isset($bind[$key]) ? $bind[$key] : PDO::PARAM_STR); + $result[$item] = ':' . $key; } } }