mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-29 09:32:47 +00:00
BUG-1585412 Fixed Date parsing regex for MySQL 5.7
MySQL 5.7 general log dates are in RFC3339 format: 2006-01-02T15:04:05Z07:00 The previous version of the log parser was not able to parse this format.
This commit is contained in:
@@ -9,7 +9,7 @@ BEGIN {
|
||||
use strict;
|
||||
use warnings FATAL => 'all';
|
||||
use English qw(-no_match_vars);
|
||||
use Test::More tests => 4;
|
||||
use Test::More tests => 5;
|
||||
|
||||
use PerconaTest;
|
||||
|
||||
@@ -54,6 +54,13 @@ ok(
|
||||
'Analysis for genlog003',
|
||||
);
|
||||
|
||||
ok(
|
||||
no_diff(
|
||||
sub { pt_query_digest::main(@args, $sample.'genlog005.txt') },
|
||||
"t/pt-query-digest/samples/genlog005.txt"
|
||||
),
|
||||
'Analysis for genlog005',
|
||||
);
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
|
Reference in New Issue
Block a user