mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 17:51:20 +02:00
Fix incorrect error message in libpq_pipeline
One of the tests for the pipeline mode with portal description expects a non-NULL PQgetResult, but used an incorrect error message on failure, telling that PQgetResult being NULL was the expected result. Author: Jelte Fennema Discussion: https://postgr.es/m/CAGECzQTkShHecFF+EZrm94Lbsu2ej569T=bz+PjMbw9Aiioxuw@mail.gmail.com Backpatch-through: 14
This commit is contained in:
parent
8aac6140c8
commit
4fd633df50
@ -961,7 +961,7 @@ test_prepared(PGconn *conn)
|
||||
pg_fatal("pipeline sync failed: %s", PQerrorMessage(conn));
|
||||
res = PQgetResult(conn);
|
||||
if (res == NULL)
|
||||
pg_fatal("expected NULL result");
|
||||
pg_fatal("PQgetResult returned null");
|
||||
if (PQresultStatus(res) != PGRES_COMMAND_OK)
|
||||
pg_fatal("expected COMMAND_OK, got %s", PQresStatus(PQresultStatus(res)));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user