1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/15055] Drop primary keys when necessary and fix test comparisons

PHPBB3-15055
This commit is contained in:
Marc Alexander
2017-01-29 15:56:45 +01:00
parent 5bb62f5560
commit 635befa00e
2 changed files with 43 additions and 1 deletions

View File

@@ -203,8 +203,15 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case
public function test_list_columns()
{
$config = $this->get_database_config();
$table_columns = $this->table_data['COLUMNS'];
if (strpos($config['dbms'], 'mssql') !== false)
{
ksort($table_columns);
}
$this->assertEquals(
array_keys($this->table_data['COLUMNS']),
array_keys($table_columns),
array_values($this->tools->sql_list_columns('prefix_table_name'))
);
}