From 4a536dcab528ee7e4538598e5e954d46e8b0a55a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E9=8A=98=E5=87=B1?= Date: Thu, 16 Feb 2023 16:30:05 +0800 Subject: [PATCH] Enhance: change the return type to follow the db field type. --- system/Database/MySQLi/Connection.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/Database/MySQLi/Connection.php b/system/Database/MySQLi/Connection.php index 094fcfe7e3ec..4451fad556a8 100644 --- a/system/Database/MySQLi/Connection.php +++ b/system/Database/MySQLi/Connection.php @@ -99,6 +99,8 @@ public function connect(bool $persistent = false) $this->mysqli->options(MYSQLI_OPT_CONNECT_TIMEOUT, 10); + $this->mysqli->options(MYSQLI_OPT_INT_AND_FLOAT_NATIVE, 1); + if (isset($this->strictOn)) { if ($this->strictOn) { $this->mysqli->options(