pt-fk-error-logger: Deal with 5.6 InnoDB timestamps

This commit is contained in:
Brian Fraser
2012-12-20 13:55:12 -03:00
parent 7539c3a8fb
commit bae4ce1ce9
2 changed files with 9 additions and 1 deletions

View File

@@ -193,6 +193,10 @@ sub parse_timestamp {
. (defined $f ? '%09.6f' : '%02d'),
$y + 2000, $m, $d, $h, $i, (defined $f ? $s + $f : $s);
}
# MySQL 5.6+ uses "proper" timestamps
elsif ( $val =~ m/^$proper_ts$/ ) {
return $val;
}
return $val;
}