Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit40af897

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 formatmakes 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 parent2c53dec commit40af897

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)

[8]ページ先頭

©2009-2025 Movatter.jp