mirror of
https://github.com/postgres/postgres.git
synced 2025-05-08 07:21:33 +03:00
Fix heap_getattr bug I just added.
This commit is contained in:
parent
4379ce8380
commit
7044dd7ec8
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: heapam.h,v 1.17 1997/09/12 05:58:18 momjian Exp $
|
* $Id: heapam.h,v 1.18 1997/09/12 14:29:04 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -95,12 +95,13 @@ typedef HeapAccessStatisticsData *HeapAccessStatistics;
|
|||||||
* pointer to the structure describing the row and all its fields.
|
* pointer to the structure describing the row and all its fields.
|
||||||
* ---------------- */
|
* ---------------- */
|
||||||
#define heap_getattr(tup, b, attnum, tupleDesc, isnull) \
|
#define heap_getattr(tup, b, attnum, tupleDesc, isnull) \
|
||||||
(AssertMacro((tup) != NULL) && \
|
(AssertMacro((tup) != NULL) ? \
|
||||||
((attnum) > (int) (tup)->t_natts) ? \
|
((attnum) > (int) (tup)->t_natts) ? \
|
||||||
((isnull && (*(isnull) = true)), (Datum)NULL) : \
|
(((isnull) ? (*(isnull) = true) : (char)NULL), (Datum)NULL) : \
|
||||||
((attnum) > 0) ? \
|
((attnum) > 0) ? \
|
||||||
fastgetattr((tup), (attnum), (tupleDesc), (isnull)) : \
|
fastgetattr((tup), (attnum), (tupleDesc), (isnull)) : \
|
||||||
((isnull && (*(isnull) = false)), heap_getsysattr((tup), (b), (attnum))))
|
(((isnull) ? (*(isnull) = false) : (char)NULL), heap_getsysattr((tup), (b), (attnum))) : \
|
||||||
|
(Datum)NULL)
|
||||||
|
|
||||||
extern HeapAccessStatistics heap_access_stats; /* in stats.c */
|
extern HeapAccessStatistics heap_access_stats; /* in stats.c */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user