Stop nibbling if chunking but not first lower boundary because table is empty. Print test debug via diag().

This commit is contained in:
Daniel Nichter
2012-07-26 16:44:24 -06:00
parent 2b1c36d6f6
commit 2290827eee
3 changed files with 29 additions and 11 deletions

View File

@@ -286,6 +286,11 @@ sub next {
return;
}
}
if ( !$self->{one_nibble} && !$self->{first_lower} ) {
PTDEBUG && _d('No first lower boundary, table must be empty');
$self->{no_more_boundaries} = 1;
return;
}
}
# If there's another nibble, fetch the rows within it.