Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+2-1
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)