Skip to content

Commit 40af897

Browse files
committed
Add braces for if block with large comment in psql's common.c
A patch touching this area of the code is under review, and this format makes the readability of the code slightly harder to parse. Extracted from a larger patch by the same author. Author: Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com> Discussion: https://postgr.es/m/CAO6_XqroE7JuMEm1sWz55rp9fAYX2JwmcP_3m_v51vnOFdsLiQ@mail.gmail.com
1 parent 2c53dec commit 40af897

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/psql/common.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,14 +1577,15 @@ ExecQueryAndProcessResults(const char *query,
15771577
if (result_status == PGRES_COPY_BOTH ||
15781578
result_status == PGRES_COPY_OUT ||
15791579
result_status == PGRES_COPY_IN)
1580-
1580+
{
15811581
/*
15821582
* For some obscure reason PQgetResult does *not* return a
15831583
* NULL in copy cases despite the result having been cleared,
15841584
* but keeps returning an "empty" result that we have to
15851585
* ignore manually.
15861586
*/
15871587
result = NULL;
1588+
}
15881589
else
15891590
result = PQgetResult(pset.db);
15901591

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