diff options
author | Marc Alexander <admin@m-a-styles.de> | 2017-12-25 18:49:31 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2018-01-01 18:55:12 +0100 |
commit | 400fc0f73d03010d3bf28d2b1db5d789dc085334 (patch) | |
tree | bb12ab982bbcbb232f62023592f892047c5886a7 /tests/dbal/db_tools_test.php | |
parent | f4381a20d4ec6201a00cd618c24fd29b67f77965 (diff) | |
download | forums-400fc0f73d03010d3bf28d2b1db5d789dc085334.tar forums-400fc0f73d03010d3bf28d2b1db5d789dc085334.tar.gz forums-400fc0f73d03010d3bf28d2b1db5d789dc085334.tar.bz2 forums-400fc0f73d03010d3bf28d2b1db5d789dc085334.tar.xz forums-400fc0f73d03010d3bf28d2b1db5d789dc085334.zip |
[ticket/15055] Only drop dependent PK indexes and fix more tests for mssql
PHPBB3-15055
Diffstat (limited to 'tests/dbal/db_tools_test.php')
-rw-r--r-- | tests/dbal/db_tools_test.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/dbal/db_tools_test.php b/tests/dbal/db_tools_test.php index f78cebdec7..dbe2c2909a 100644 --- a/tests/dbal/db_tools_test.php +++ b/tests/dbal/db_tools_test.php @@ -462,7 +462,10 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case // Index name has > 30 chars - that should not be possible. $too_long_index_name = str_repeat('i', 31); $this->assertFalse($this->tools->sql_index_exists('prefix_table_name', $too_long_index_name)); - $this->setExpectedTriggerError(E_USER_ERROR); + if (strpos($this->tools->sql_layer, 'mssql') === false) + { + $this->setExpectedTriggerError(E_USER_ERROR); + } $this->tools->sql_create_index('prefix_table_name', $too_long_index_name, array('c_timestamp')); } } |