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

Commit451ca5c

Browse files
committed
Fix incorrect error message in libpq_pipeline
One of the tests for the pipeline mode with portal description expects anon-NULL PQgetResult, but used an incorrect error message on failure,telling that PQgetResult being NULL was the expected result.Author: Jelte FennemaDiscussion:https://postgr.es/m/CAGECzQTkShHecFF+EZrm94Lbsu2ej569T=bz+PjMbw9Aiioxuw@mail.gmail.comBackpatch-through: 14
1 parent991983f commit451ca5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/test/modules/libpq_pipeline/libpq_pipeline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ test_prepared(PGconn *conn)
949949
pg_fatal("pipeline sync failed: %s",PQerrorMessage(conn));
950950
res=PQgetResult(conn);
951951
if (res==NULL)
952-
pg_fatal("expected NULL result");
952+
pg_fatal("PQgetResult returned null");
953953
if (PQresultStatus(res)!=PGRES_COMMAND_OK)
954954
pg_fatal("expected COMMAND_OK, got %s",PQresStatus(PQresultStatus(res)));
955955

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp