From 076d2e8091010bc9811d3d1ae29be6d65baf662e Mon Sep 17 00:00:00 2001 From: Asus5800x Date: Wed, 26 Jun 2024 15:13:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=A5=E8=AF=A2bigint?= =?UTF-8?q?=E6=97=B6=E8=87=AA=E5=8A=A8=E8=BD=AC=E4=B8=BA=E7=A7=91=E5=AD=A6?= =?UTF-8?q?=E8=AE=A1=E6=95=B0=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ? -- Gitee