PT-2264 - pt-query-digest Pipeline process 11 (--output slowlog) caused an error: Wide character

- Updated lib/DSNParser.pm, so it sets binmode to character set utf8 since
  MySQL 8.0 if character set is not specified in the DSN
- Added test case
- Run update-modules
This commit is contained in:
Sveta Smirnova
2024-03-19 00:08:42 +03:00
parent 80c266b048
commit 1ad44e04da
22 changed files with 711 additions and 581 deletions

View File

@@ -271,7 +271,7 @@ 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) ];
my $want = $sandbox_version lt '8.0' ? [ qw(utf8 utf8 utf8) ]: [ qw(utf8mb3 utf8mb3 utf8mb3) ];
is_deeply(
$dbh->selectrow_arrayref('select @@character_set_client, @@character_set_connection, @@character_set_results'),