Tests added for SlowLogParser

SlowLogParser now is able to handle MySQL dates in RFC3339 format.
A new test for this case was added and all scripts using SlowLogParser
in bin/ have been updated.
This commit is contained in:
Carlos Salguero
2016-07-20 15:53:59 -03:00
parent 94bb5ad2c5
commit 9eb95cb4da
5 changed files with 59 additions and 3 deletions
+1 -1
View File
@@ -2239,7 +2239,7 @@ sub new {
return bless $self, $class;
}
my $slow_log_ts_line = qr/^# Time: ([0-9: ]{15})/;
my $slow_log_ts_line = qr/^# Time: ((?:[0-9: ]{15})|(?:[-0-9: T]{19}))/;
my $slow_log_uh_line = qr/# User\@Host: ([^\[]+|\[[^[]+\]).*?@ (\S*) \[(.*)\]\s*(?:Id:\s*(\d+))?/;
my $slow_log_hd_line = qr{
^(?: