1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-28 08:22:44 +02:00

db_table_adminTest::testGet_current_table(): Alias utf8mb3 => utf8

MySQL 8.0 compatibility

Ideally, we'd be using utf8mb4 everywhere, but alas...
This commit is contained in:
Nick Liu 2021-04-22 20:57:28 -05:00
parent 7ff45abe36
commit cdde5ef86b
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -346,7 +346,13 @@
$result = $this->dta->get_current_table('core');
$this->assertSame($result,$expected);
// MySQL 8.0+: Alias CHARSET=utf8mb3 to CHARSET=utf8
array_walk_recursive($result, function(&$element)
{
$element = str_replace("CHARSET=utf8mb3", "CHARSET=utf8", $element);
});
$this->assertSame($expected, $result);
}