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

Commitefdb4f2

Browse files
committed
Fix bug in PostgresNode::query_hash's split() call.
By default, Perl's split() function drops trailing empty fields,which is not what we want here. Oversight in commitfb093e4.We'd managed to miss it thus far thanks to the very limited usageof this function.Discussion:https://postgr.es/m/14837.1499029831@sss.pgh.pa.us
1 parent4e15387 commitefdb4f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/test/perl/PostgresNode.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1533,7 +1533,7 @@ sub query_hash
15331533
#
15341534
my%val;
15351535
@val{@columns} =
1536-
$resultne'' ?split(qr/\|/,$result) : ('',) xscalar(@columns);
1536+
$resultne'' ?split(qr/\|/,$result, -1) : ('',) xscalar(@columns);
15371537
return \%val;
15381538
}
15391539

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp