aboutsummaryrefslogtreecommitdiff
path: root/lib/bootstrap.php
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2025-05-08 10:26:31 +0200
committerElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2025-05-08 10:26:31 +0200
commitaa30b91fb84e0d57148b3adf7529c4d504a6215e (patch)
treebacb67d5442e441d8ae4e4a4cf34198e9c36b08b /lib/bootstrap.php
parenta2cb2207a310b616f658337e86f713d79014c005 (diff)
always set PDO::ATTR_STRINGIFY_FETCHES, fixes #5382
Closes #5382 and #4971 Merge request studip/studip!4205
Diffstat (limited to 'lib/bootstrap.php')
-rw-r--r--lib/bootstrap.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/bootstrap.php b/lib/bootstrap.php
index 73a2c45..b1b336e 100644
--- a/lib/bootstrap.php
+++ b/lib/bootstrap.php
@@ -159,11 +159,6 @@ if (isset($GLOBALS['DB_STUDIP_SLAVE_HOST'])) {
DBManager::getInstance()->aliasConnection('studip', 'studip-slave');
}
-if (Studip\ENV === 'production') {
- DBManager::get()->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
- DBManager::get('studip-slave')->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
-}
-
// Check if we need to enable the fix for column default values for mariadb >= 10.2.7
if (DBManager::get()->isMariaDB('10.2.7')) {
SimpleORMap::setMariadbDefaultColumnFix();