Skip to content

Commit ecbf6ac

Browse files
committed
tests: Trim newline from result returned by BackgroundPsql->query
This went unnoticed, because only a few existing callers of BackgroundPsql->query used the result, and the ones that did were not bothered by an extra newline. I noticed because I was about to add a new test that checks the result. Backport to all supported versions, since I just backported the BackgroundPsql facility to all supported versions too.
1 parent a2dff27 commit ecbf6ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/perl/PostgreSQL/Test/BackgroundPsql.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ sub query
223223
$output = $self->{stdout};
224224

225225
# remove banner again, our caller doesn't care
226-
$output =~ s/\n$banner$//s;
226+
$output =~ s/\n$banner\n$//s;
227227

228228
# clear out output for the next query
229229
$self->{stdout} = '';

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy