[BUGFIX] Make functional tests run with sql_mode STRICT_TRANS_TABLES