From f4b448e13a7c95d07ef33a73e2bccda8874c4379 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Mon, 18 Dec 2023 14:24:00 -0300 Subject: [PATCH] Add PDO attribute to disable stringifying fetches. --- src/Driver.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Driver.php b/src/Driver.php index 45f220180..e6bc02e7d 100644 --- a/src/Driver.php +++ b/src/Driver.php @@ -17,6 +17,8 @@ final class Driver extends AbstractPdoDriver public function createConnection(): PDO { $this->attributes += [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]; + $this->attributes += [PDO::ATTR_STRINGIFY_FETCHES => false]; + return parent::createConnection(); }