mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/11576] MySQL unit tests: Enable STRICT_TRANS_TABLES and others.
This commit is contained in:
commit
f0d8168e81
1 changed files with 14 additions and 0 deletions
|
@ -148,6 +148,20 @@ class phpbb_database_test_connection_manager
|
||||||
case 'phpbb_db_driver_mysql':
|
case 'phpbb_db_driver_mysql':
|
||||||
case 'phpbb_db_driver_mysqli':
|
case 'phpbb_db_driver_mysqli':
|
||||||
$this->pdo->exec('SET NAMES utf8');
|
$this->pdo->exec('SET NAMES utf8');
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The phpBB MySQL drivers set the STRICT_ALL_TABLES and
|
||||||
|
* STRICT_TRANS_TABLES flags/modes, so as a minimum requirement
|
||||||
|
* we want to make sure those are set for the PDO side of the
|
||||||
|
* test suite.
|
||||||
|
*
|
||||||
|
* The TRADITIONAL flag implies STRICT_ALL_TABLES and
|
||||||
|
* STRICT_TRANS_TABLES as well as other useful strictness flags
|
||||||
|
* the phpBB MySQL driver does not set.
|
||||||
|
*/
|
||||||
|
$this->pdo->exec("SET SESSION sql_mode='TRADITIONAL'");
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue