Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6657acc

Browse files
committed
Fix -e option in contrib/intarray/bench/bench.pl.
As implemented, -e ran an EXPLAIN but then discarded the output, which certainly seems pointless. Make it print to stdout instead. It's been like that forever, so back-patch to all supported branches. Daniel Gustafsson, reviewed by Andreas Scherbaum Patch: <B97BDCB7-A3B3-4734-90B5-EDD586941629@yesql.se>
1 parent bfaaacc commit 6657acc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/intarray/bench/bench.pl

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@
9292

9393
if ($opt{e})
9494
{
95-
$dbi->do("explain $sql");
95+
my @plan = map { "$_->[0]\n" } @{$dbi->selectall_arrayref("explain $sql")};
96+
print @plan;
9697
}
9798

9899
my $t0 = [gettimeofday];

0 commit comments

Comments
 (0)