Fix ReportConnectionError for empty error messages

pull/6283/head
Marco Slot 2022-09-01 13:59:14 +02:00
parent 8f560b6031
commit 06affc7467
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ ReportConnectionError(MultiConnection *connection, int elevel)
messageDetail = pchomp(PQerrorMessage(pgConn));
}
if (messageDetail)
if (messageDetail && messageDetail[0] != '\0')
{
ereport(elevel, (errcode(ERRCODE_CONNECTION_FAILURE),
errmsg("connection to the remote node %s:%d failed with the "