1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 12:21:45 +02:00

Removed bad e_LEGACY_MODE implementation

e_LEGACY_MODE caused the query results from e_db_pdo and e_db_mysql to return different styles (MYSQL_BOTH and MYSQL_ASSOC, respectively).

To resolve this inconsistency, e_LEGACY_MODE has been removed from the e107 core.
This commit is contained in:
Nick Liu
2019-12-23 16:50:33 +01:00
parent 71e7f8778c
commit 9677db1c1c
4 changed files with 3 additions and 8 deletions

View File

@@ -651,7 +651,8 @@ abstract class e_db_abstractTest extends \Codeception\Test\Unit
$this->db->select('user', '*', 'user_id = 1');
$row = $this->db->db_Fetch();
$this->assertEquals("e107", $row['user_name']);
$this->assertEquals("e107", $row[1]);
$this->assertNull($row[0]);
$this->assertNull($row[1]);
// legacy tests
$this->db->select('user', '*', 'user_id = 1');