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
This commit is contained in:
Antoine Musso 2018-04-27 11:10:32 +02:00 committed by Aaron Schulz
parent 5eb97ec3f0
commit 45919c5869

View file

@ -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 ) {