1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-03 00:26:59 +02:00

Fix return type for PQresultStatus().

Found on MacOS M1.
This commit is contained in:
David Steele
2021-01-21 18:30:24 -05:00
parent bc25e9bf05
commit 8d883ea76b

View File

@ -232,7 +232,7 @@ pgClientQuery(PgClient *this, const String *query)
THROW_FMT(DbQueryError, "query '%s' timed out after %" PRIu64 "ms", strZ(query), this->queryTimeout);
// If this was a command that returned no results then we are done
int resultStatus = PQresultStatus(pgResult);
ExecStatusType resultStatus = PQresultStatus(pgResult);
if (resultStatus != PGRES_COMMAND_OK)
{