diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-05-27 18:17:15 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-05-27 18:17:15 +0200 |
commit | f0d8168e81e2e140e200e2832afce0b66a235c6d (patch) | |
tree | 831cea598c6847cbb20c9b33eca4901050b68ef9 /tests/test_framework/phpbb_database_test_connection_manager.php | |
parent | caf61700f976b6f0bcd6c3a29b650e13494f5ebb (diff) | |
parent | cc68ea5f6ffb2b2932f495e8290977461c2393c7 (diff) | |
download | forums-f0d8168e81e2e140e200e2832afce0b66a235c6d.tar forums-f0d8168e81e2e140e200e2832afce0b66a235c6d.tar.gz forums-f0d8168e81e2e140e200e2832afce0b66a235c6d.tar.bz2 forums-f0d8168e81e2e140e200e2832afce0b66a235c6d.tar.xz forums-f0d8168e81e2e140e200e2832afce0b66a235c6d.zip |
Merge branch 'develop-olympus' into develop
* develop-olympus:
[ticket/11576] MySQL unit tests: Enable STRICT_TRANS_TABLES and others.
Diffstat (limited to 'tests/test_framework/phpbb_database_test_connection_manager.php')
-rw-r--r-- | tests/test_framework/phpbb_database_test_connection_manager.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_database_test_connection_manager.php b/tests/test_framework/phpbb_database_test_connection_manager.php index a192d2922f..6bf73dcfa4 100644 --- a/tests/test_framework/phpbb_database_test_connection_manager.php +++ b/tests/test_framework/phpbb_database_test_connection_manager.php @@ -148,6 +148,20 @@ class phpbb_database_test_connection_manager case 'phpbb_db_driver_mysql': case 'phpbb_db_driver_mysqli': $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: } } |