|
6 | 6 | * |
7 | 7 | * Copyright (c) 1994, Regents of the University of California |
8 | 8 | * |
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 $ |
10 | 10 | * |
11 | 11 | *------------------------------------------------------------------------- |
12 | 12 | */ |
@@ -95,12 +95,13 @@ typedef HeapAccessStatisticsData *HeapAccessStatistics; |
95 | 95 | *pointer to the structure describing the row and all its fields. |
96 | 96 | * ---------------- */ |
97 | 97 | #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) |
104 | 105 |
|
105 | 106 | externHeapAccessStatisticsheap_access_stats;/* in stats.c */ |
106 | 107 |
|
|