diff --git a/library/think/db/Connection.php b/library/think/db/Connection.php index 578cc8f9..6e17cf34 100644 --- a/library/think/db/Connection.php +++ b/library/think/db/Connection.php @@ -483,7 +483,7 @@ abstract class Connection if (PDO::PARAM_STR == $type) { $value = $this->quote($value); } elseif (PDO::PARAM_INT == $type) { - $value = (float) $value; + $value = sprintf("%d", $value); } // 判断占位符 $sql = is_numeric($key) ?