From: Antoine Musso Date: Fri, 27 Apr 2018 09:10:32 +0000 (+0200) Subject: tests: enable MariaDB/MySQL strict mode X-Git-Tag: 1.34.0-rc.0~2166^2 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=45919c5869e9cc837099eb7415d87c45f6c7ac75;p=lhc%2Fweb%2Fwiklou.git tests: enable MariaDB/MySQL strict mode Pass sql_mode=TRADITIONAL to the SQL connection which would raise an error instead of warning, for example when a field is truncated. This change will most probably cause some extensions test to start magically failling. Bug: T119371 Change-Id: I2051952090e48876f629690981e25603eff79f67 --- diff --git a/includes/DevelopmentSettings.php b/includes/DevelopmentSettings.php index 8b32de4f64..7f00c6cb0b 100644 --- a/includes/DevelopmentSettings.php +++ b/includes/DevelopmentSettings.php @@ -36,6 +36,9 @@ $wgShowExceptionDetails = true; $wgShowHostnames = true; $wgDebugRawPage = true; // T49960 +// Enable MariaDB/MySQL strict mode +$wgSQLMode = 'TRADITIONAL'; + // Enable log files $logDir = getenv( 'MW_LOG_DIR' ); if ( $logDir ) {