Skip to content

Commit 828874b

Browse files
committed
Fix error reporting for mm_disable_node functions
1 parent 151fe4a commit 828874b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/multimaster/multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,7 @@ static bool MMRunUtilityStmt(PGconn* conn, char const* sql)
12381238
{
12391239
PGresult *result = PQexec(conn, sql);
12401240
int status = PQresultStatus(result);
1241-
bool ret = status == PGRES_COMMAND_OK;
1241+
bool ret = status == PGRES_COMMAND_OK || status == PGRES_TUPLES_OK;
12421242
if (!ret) {
12431243
elog(WARNING, "Command '%s' failed with status %d", sql, status);
12441244
}

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