Created
August 30, 2024 05:50
-
-
Save ichaykin/f66b7d332dde3a053a95c756500c6554 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/Tygh/Backend/Database/Pdo.php b/app/Tygh/Backend/Database/Pdo.php | |
index eeafd47f21..dc3356d534 100644 | |
--- a/app/Tygh/Backend/Database/Pdo.php | |
+++ b/app/Tygh/Backend/Database/Pdo.php | |
@@ -53,7 +53,10 @@ class Pdo implements IBackend | |
$user, | |
$passwd, | |
// phpcs:ignore | |
- [\PDO::ATTR_ERRMODE => \PDO::ERRMODE_SILENT] | |
+ [ | |
+ \PDO::ATTR_ERRMODE => \PDO::ERRMODE_SILENT, | |
+ \PDO::ATTR_STRINGIFY_FETCHES => true | |
+ ] | |
); | |
} catch (PDOException $e) { | |
return false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment