diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-01-27 13:03:54 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-01-27 13:03:54 +0000 |
| commit | e4bf27a6e37efa3d7fd5decabacfd2dc94823aa6 (patch) | |
| tree | ae5b7708166b82809f39910bd431b37f5270d166 /lib/bootstrap.php | |
| parent | d031d9406ebce1b40ca94d137caa199a84e75d24 (diff) | |
fix sorm default string values for mariadb >= 10.2.7, fixes #4462
Closes #4462
Merge request studip/studip!3250
Diffstat (limited to 'lib/bootstrap.php')
| -rw-r--r-- | lib/bootstrap.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bootstrap.php b/lib/bootstrap.php index 0ba2599..e03785a 100644 --- a/lib/bootstrap.php +++ b/lib/bootstrap.php @@ -164,6 +164,11 @@ if (Studip\ENV === 'production') { 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(); +} + // set default exception handler // command line or http request? if (isset($_SERVER['REQUEST_METHOD'])) { |
