Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit509815e

Browse files
committed
Fix -e option in contrib/intarray/bench/bench.pl.
As implemented, -e ran an EXPLAIN but then discarded the output, whichcertainly seems pointless. Make it print to stdout instead. It's beenlike that forever, so back-patch to all supported branches.Daniel Gustafsson, reviewed by Andreas ScherbaumPatch: <B97BDCB7-A3B3-4734-90B5-EDD586941629@yesql.se>
1 parent7f35949 commit509815e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎contrib/intarray/bench/bench.pl

Lines changed: 2 additions & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp