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:
Carlos Salguero
2016-06-08 17:11:36 -03:00
parent fa2c208754
commit 3313913fa7
4 changed files with 331 additions and 2 deletions

View File

@@ -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.
# #############################################################################