修复查询bigint时自动转为科学计数的BUG

This commit is contained in:
Asus5800x
2024-06-26 15:13:20 +08:00
parent c859e712f5
commit 076d2e8091

View File

@@ -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) ?