Fix prepared report for statements without corresponding prep or exec.

This commit is contained in:
Daniel Nichter
2011-11-08 12:53:50 -07:00
parent 4f1fa405b7
commit 2f9ab4081a
9 changed files with 200 additions and 19 deletions

View File

@@ -9,7 +9,7 @@ BEGIN {
use strict;
use warnings FATAL => 'all';
use English qw(-no_match_vars);
use Test::More tests => 6;
use Test::More tests => 7;
use PerconaTest;
@@ -69,6 +69,18 @@ ok(
'Analysis for tcpdump033 with prepared statements report'
);
# ############################################################################
# Bug 887688: Prepared statements crash pt-query-digest
# ############################################################################
ok(
no_diff(
sub { pt_query_digest::main(@args, $sample.'tcpdump041.txt',
'--report-format', 'header,query_report,profile,prepared') },
"t/pt-query-digest/samples/tcpdump041.txt",
),
'Analysis for tcpdump041 (bug 887688)'
);
# #############################################################################
# Done.
# #############################################################################