aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-12-25 18:49:31 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-01-01 18:55:12 +0100
commit400fc0f73d03010d3bf28d2b1db5d789dc085334 (patch)
treebb12ab982bbcbb232f62023592f892047c5886a7 /tests/dbal
parent[ticket/15055] Handle default identity column on mssql in database tests (diff)
downloadphpbb-400fc0f73d03010d3bf28d2b1db5d789dc085334.tar.gz
phpbb-400fc0f73d03010d3bf28d2b1db5d789dc085334.tar.bz2
phpbb-400fc0f73d03010d3bf28d2b1db5d789dc085334.zip
[ticket/15055] Only drop dependent PK indexes and fix more tests for mssql
PHPBB3-15055
Diffstat (limited to 'tests/dbal')
-rw-r--r--tests/dbal/db_tools_test.php5
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'));
}
}