From b6fd7f6d101e05a053b4fc1f6633a02b6a45ced8 Mon Sep 17 00:00:00 2001 From: frank-cizmich Date: Mon, 24 Aug 2015 19:49:05 -0300 Subject: [PATCH] fixed spurious KeySize test error --- t/lib/KeySize.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/lib/KeySize.t b/t/lib/KeySize.t index b51b9b17..d7d02a3d 100644 --- a/t/lib/KeySize.t +++ b/t/lib/KeySize.t @@ -124,7 +124,9 @@ like( 'Query uses index_merge (issue 364)' ); - +# lets help get_key_size get an accurate figure by ANALYZING the table first +# otherwise we get spurious false positives that are off by just a bit +$dbh->do('ANALYZE TABLE test.issue_364'); ($size, $chosen_key) = $ks->get_key_size(%key); is( $size,