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

Commitb936d92

Browse files
committed
Report libpq errors correctly if session setup or teardown steps fail in
isolation regression tests.Alvaro committed these fixes to master branch on Tue Jul 29th, as part ofNoah Misch's patch. The rest of that patch is not needed on 9.1, but thispart should be backpatched.
1 parentb9585e8 commitb936d92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/test/isolation/isolationtester.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ run_permutation(TestSpec * testspec, int nsteps, Step ** steps)
286286
{
287287
fprintf(stderr,"setup of session %s failed: %s",
288288
testspec->sessions[i]->name,
289-
PQerrorMessage(conns[0]));
289+
PQerrorMessage(conns[i]));
290290
exit_nicely();
291291
}
292292
PQclear(res);
@@ -333,7 +333,7 @@ run_permutation(TestSpec * testspec, int nsteps, Step ** steps)
333333
{
334334
fprintf(stderr,"teardown of session %s failed: %s",
335335
testspec->sessions[i]->name,
336-
PQerrorMessage(conns[0]));
336+
PQerrorMessage(conns[i]));
337337
/* don't exit on teardown failure */
338338
}
339339
PQclear(res);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp