mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	heapattr functions now return a Datum, not char *.
This commit is contained in:
		@@ -6,7 +6,7 @@
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (c) 1994, Regents of the University of California
 | 
			
		||||
 *
 | 
			
		||||
 * $Id: heapam.h,v 1.15 1997/09/08 21:50:45 momjian Exp $
 | 
			
		||||
 * $Id: heapam.h,v 1.16 1997/09/12 04:09:03 momjian Exp $
 | 
			
		||||
 *
 | 
			
		||||
 *-------------------------------------------------------------------------
 | 
			
		||||
 */
 | 
			
		||||
@@ -97,11 +97,11 @@ typedef HeapAccessStatisticsData *HeapAccessStatistics;
 | 
			
		||||
#define heap_getattr(tup, b, attnum, tupleDesc, isnull) \
 | 
			
		||||
	(AssertMacro((tup) != NULL) ? \
 | 
			
		||||
		((attnum) > (int) (tup)->t_natts) ? \
 | 
			
		||||
			(((isnull) ? (*(isnull) = true) : (char)NULL), (char *)NULL) : \
 | 
			
		||||
			(((isnull) ? (*(isnull) = true) : (char)NULL), (Datum)NULL) : \
 | 
			
		||||
		((attnum) > 0) ? \
 | 
			
		||||
			fastgetattr((tup), (attnum), (tupleDesc), (isnull)) : \
 | 
			
		||||
		(((isnull) ? (*(isnull) = false) : (char)NULL), heap_getsysattr((tup), (b), (attnum))) : \
 | 
			
		||||
	(char *)NULL)
 | 
			
		||||
	(Datum)NULL)
 | 
			
		||||
 | 
			
		||||
extern HeapAccessStatistics heap_access_stats;	/* in stats.c */
 | 
			
		||||
 | 
			
		||||
@@ -143,10 +143,9 @@ DataFill(char *data, TupleDesc tupleDesc,
 | 
			
		||||
extern int	heap_attisnull(HeapTuple tup, int attnum);
 | 
			
		||||
extern int	heap_sysattrlen(AttrNumber attno);
 | 
			
		||||
extern bool heap_sysattrbyval(AttrNumber attno);
 | 
			
		||||
extern char *heap_getsysattr(HeapTuple tup, Buffer b, int attnum);
 | 
			
		||||
extern char *
 | 
			
		||||
fastgetattr(HeapTuple tup, int attnum,
 | 
			
		||||
			TupleDesc att, bool *isnull);
 | 
			
		||||
extern Datum heap_getsysattr(HeapTuple tup, Buffer b, int attnum);
 | 
			
		||||
extern Datum fastgetattr(HeapTuple tup, int attnum,
 | 
			
		||||
						 TupleDesc att, bool *isnull);
 | 
			
		||||
extern HeapTuple heap_copytuple(HeapTuple tuple);
 | 
			
		||||
extern HeapTuple
 | 
			
		||||
heap_formtuple(TupleDesc tupleDescriptor,
 | 
			
		||||
 
 | 
			
		||||
@@ -80,7 +80,7 @@ extern void *SPI_saveplan(void *plan);
 | 
			
		||||
extern int	SPI_fnumber(TupleDesc tupdesc, char *fname);
 | 
			
		||||
extern char *SPI_fname(TupleDesc tupdesc, int fnumber);
 | 
			
		||||
extern char *SPI_getvalue(HeapTuple tuple, TupleDesc tupdesc, int fnumber);
 | 
			
		||||
extern char *SPI_getbinval(HeapTuple tuple, TupleDesc tupdesc, int fnumber, bool * isnull);
 | 
			
		||||
extern Datum SPI_getbinval(HeapTuple tuple, TupleDesc tupdesc, int fnumber, bool * isnull);
 | 
			
		||||
extern char *SPI_gettype(TupleDesc tupdesc, int fnumber);
 | 
			
		||||
extern Oid	SPI_gettypeid(TupleDesc tupdesc, int fnumber);
 | 
			
		||||
extern char *SPI_getrelname(Relation rel);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user