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

Commit7044dd7

Browse files
committed
Fix heap_getattr bug I just added.
1 parent4379ce8 commit7044dd7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

‎src/include/access/heapam.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: heapam.h,v 1.17 1997/09/1205:58:18 momjian Exp $
9+
* $Id: heapam.h,v 1.18 1997/09/1214:29:04 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -95,12 +95,13 @@ typedef HeapAccessStatisticsData *HeapAccessStatistics;
9595
*pointer to the structure describing the row and all its fields.
9696
* ---------------- */
9797
#defineheap_getattr(tup,b,attnum,tupleDesc,isnull) \
98-
(AssertMacro((tup) != NULL) && \
99-
((attnum) > (int) (tup)->t_natts) ? \
100-
((isnull && (*(isnull) = true)), (Datum)NULL) : \
101-
((attnum) > 0) ? \
102-
fastgetattr((tup), (attnum), (tupleDesc), (isnull)) : \
103-
((isnull && (*(isnull) = false)), heap_getsysattr((tup), (b), (attnum))))
98+
(AssertMacro((tup) != NULL) ? \
99+
((attnum) > (int) (tup)->t_natts) ? \
100+
(((isnull) ? (*(isnull) = true) : (char)NULL), (Datum)NULL) : \
101+
((attnum) > 0) ? \
102+
fastgetattr((tup), (attnum), (tupleDesc), (isnull)) : \
103+
(((isnull) ? (*(isnull) = false) : (char)NULL), heap_getsysattr((tup), (b), (attnum))) : \
104+
(Datum)NULL)
104105

105106
externHeapAccessStatisticsheap_access_stats;/* in stats.c */
106107

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp