|
7 | 7 | * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
|
8 | 8 | * Portions Copyright (c) 1994, Regents of the University of California
|
9 | 9 | *
|
10 |
| - * $PostgreSQL: pgsql/src/include/access/heapam.h,v 1.109 2006/04/24 22:17:04 momjian Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/include/access/heapam.h,v 1.110 2006/04/24 22:24:58 momjian Exp $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
|
45 | 45 | #definefastgetattr(tup,attnum,tupleDesc,isnull)\
|
46 | 46 | (\
|
47 | 47 | AssertMacro((attnum) > 0),\
|
48 |
| -((isnull) ? (*(isnull) = false) : (dummyret)NULL),\ |
| 48 | +(((isnull) != NULL) ? (*(isnull) = false) : (dummyret)NULL),\ |
49 | 49 | HeapTupleNoNulls(tup) ?\
|
50 | 50 | (\
|
51 | 51 | (tupleDesc)->attrs[(attnum)-1]->attcacheoff >= 0 ?\
|
|
61 | 61 | (\
|
62 | 62 | att_isnull((attnum)-1, (tup)->t_data->t_bits) ?\
|
63 | 63 | (\
|
64 |
| -((isnull) ? (*(isnull) = true) : (dummyret)NULL),\ |
| 64 | +(((isnull) != NULL) ? (*(isnull) = true) : (dummyret)NULL),\ |
65 | 65 | (Datum)NULL\
|
66 | 66 | )\
|
67 | 67 | :\
|
|