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

Commit8445f5a

Browse files
committed
Improve two comments related to a boolean DefElem's value
The original comments mentioned a "parameter" as something not definedin a fast-exit path to assume a true status. This is rather confusingas the parameter DefElem is defined, and the intention is to check ifits value is defined. This improves both comments to mention the valueassigned to the DefElem's value instead, so as future patches are ableto catch the tweak if this code pattern gets copied around more.Author: Peter SmithDiscussion:https://postgr.es/m/CAHut+Pv0yWynWTmp4o34s0d98xVubys9fy=p0YXsZ5_sUcNnMw@mail.gmail.com
1 parent1cd1821 commit8445f5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/backend/commands/copy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ static CopyHeaderChoice
321321
defGetCopyHeaderChoice(DefElem*def,boolis_from)
322322
{
323323
/*
324-
* If no parameter given, assume "true" is meant.
324+
* If no parametervaluegiven, assume "true" is meant.
325325
*/
326326
if (def->arg==NULL)
327327
returnCOPY_HEADER_TRUE;

‎src/backend/commands/define.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ bool
108108
defGetBoolean(DefElem*def)
109109
{
110110
/*
111-
* If no parameter given, assume "true" is meant.
111+
* If no parametervaluegiven, assume "true" is meant.
112112
*/
113113
if (def->arg==NULL)
114114
return true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp