PT-1554 (WIP) Tests for MySQL 8

There are tests failing but the sandbox doesn't crash
This commit is contained in:
Carlos Salguero
2018-05-30 21:25:28 -03:00
parent b801dfa156
commit 0004bb7bbc
14 changed files with 168 additions and 152 deletions

View File

@@ -256,9 +256,11 @@ SKIP: {
is($d->{S}, '/tmp/12345/mysql_sandbox12345.sock', 'Filled in socket');
is($d->{h}, '127.0.0.1', 'Left hostname alone');
my $want = $sandbox_version lt '8.0' ? [ qw(utf8 utf8 utf8) ]: [ qw(utf8mb4 utf8mb4 utf8mb4) ];
warn Data::Dumper::Dumper($want);
is_deeply(
$dbh->selectrow_arrayref('select @@character_set_client, @@character_set_connection, @@character_set_results'),
[qw(utf8 utf8 utf8)],
$want,
'Set charset'
);
$dbh->disconnect();
@@ -276,7 +278,7 @@ SKIP: {
};
is_deeply(
$dbh->selectrow_arrayref('select @@character_set_client, @@character_set_connection, @@character_set_results'),
[qw(utf8 utf8 utf8)],
$want,
'Set utf8 charset case-insensitively (issue 1282)'
);
};