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

Commit221b377

Browse files
committed
Improve comment for att_isnull.
The comment implies that a 1 in the null bitmap indicates a null value,but actually a 0 in the null bitmap indicates a null value. Try tobe more clear.Patch by me; proposed wording reviewed by Alvaro Herrera and Tom Lane.Discussion:http://postgr.es/m/CA+TgmobHOP8r6cG+UnsDFMrS30-m=jRrCBhgw-nFkn0k9QnFsg@mail.gmail.com
1 parentddf927f commit221b377

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/include/access/tupmacs.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616

1717

1818
/*
19-
* check to see if the ATT'th bit of an array of 8-bit bytes is set.
19+
* Check a tuple's null bitmap to determine whether the attribute is null.
20+
* Note that a 0 in the null bitmap indicates a null, while 1 indicates
21+
* non-null.
2022
*/
2123
#defineatt_isnull(ATT,BITS) (!((BITS)[(ATT) >> 3] & (1 << ((ATT) & 0x07))))
2224

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp