mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12446] Unnecessary db connect inphpbb_bootstrap_enabled_exts
This commit is contained in:
@@ -22,7 +22,7 @@ class phpbb_dbal_order_lower_test extends phpbb_database_test_case
|
||||
{
|
||||
$db = $this->new_dbal();
|
||||
|
||||
if (strpos($db->sql_layer, 'mysql') === 0 && version_compare($db->sql_server_info(true, false), '5.6', '>='))
|
||||
if (strpos($db->get_sql_layer(), 'mysql') === 0 && version_compare($db->sql_server_info(true, false), '5.6', '>='))
|
||||
{
|
||||
$this->markTestSkipped('MySQL 5.6 fails to order things correctly. See also: http://tracker.phpbb.com/browse/PHPBB3-11571 http://bugs.mysql.com/bug.php?id=69005');
|
||||
}
|
||||
|
@@ -219,8 +219,8 @@ class phpbb_dbal_select_test extends phpbb_database_test_case
|
||||
{
|
||||
$db = $this->new_dbal();
|
||||
|
||||
$like_expression = str_replace('*', $db->any_char, $like_expression);
|
||||
$like_expression = str_replace('#', $db->one_char, $like_expression);
|
||||
$like_expression = str_replace('*', $db->get_any_char(), $like_expression);
|
||||
$like_expression = str_replace('#', $db->get_one_char(), $like_expression);
|
||||
$where = ($like_expression) ? 'username_clean ' . $db->sql_like_expression($like_expression) : '';
|
||||
|
||||
$result = $db->sql_query('SELECT username_clean
|
||||
|
@@ -32,7 +32,7 @@ class phpbb_dbal_sql_insert_buffer_test extends phpbb_database_test_case
|
||||
|
||||
public function test_multi_insert_disabled_insert_and_flush()
|
||||
{
|
||||
$this->db->multi_insert = false;
|
||||
$this->db->set_multi_insert(false);
|
||||
$this->assertTrue($this->buffer->insert($this->get_row(1)));
|
||||
$this->assert_config_count(3);
|
||||
$this->assertFalse($this->buffer->flush());
|
||||
@@ -50,7 +50,7 @@ class phpbb_dbal_sql_insert_buffer_test extends phpbb_database_test_case
|
||||
|
||||
public function test_multi_insert_disabled_insert_with_flush()
|
||||
{
|
||||
$this->db->multi_insert = false;
|
||||
$this->db->set_multi_insert(false);
|
||||
$this->assertTrue($this->buffer->insert($this->get_row(1)));
|
||||
$this->assert_config_count(3);
|
||||
$this->assertTrue($this->buffer->insert($this->get_row(2)));
|
||||
@@ -68,7 +68,7 @@ class phpbb_dbal_sql_insert_buffer_test extends phpbb_database_test_case
|
||||
|
||||
public function test_multi_insert_disabled_insert_all_and_flush()
|
||||
{
|
||||
$this->db->multi_insert = false;
|
||||
$this->db->set_multi_insert(false);
|
||||
$this->assertTrue($this->buffer->insert_all($this->get_rows(3)));
|
||||
$this->assert_config_count(5);
|
||||
}
|
||||
@@ -93,7 +93,7 @@ class phpbb_dbal_sql_insert_buffer_test extends phpbb_database_test_case
|
||||
|
||||
protected function check_multi_insert_support()
|
||||
{
|
||||
if (!$this->db->multi_insert)
|
||||
if (!$this->db->get_multi_insert())
|
||||
{
|
||||
$this->markTestSkipped('Database does not support multi_insert');
|
||||
}
|
||||
|
Reference in New Issue
Block a user