mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
heapattr functions now return a Datum, not char *.
This commit is contained in:
@ -319,7 +319,7 @@ SPI_fname(TupleDesc tupdesc, int fnumber)
|
||||
char *
|
||||
SPI_getvalue(HeapTuple tuple, TupleDesc tupdesc, int fnumber)
|
||||
{
|
||||
char *val;
|
||||
Datum val;
|
||||
bool isnull;
|
||||
Oid foutoid;
|
||||
|
||||
@ -346,10 +346,10 @@ SPI_getvalue(HeapTuple tuple, TupleDesc tupdesc, int fnumber)
|
||||
return (fmgr(foutoid, val, gettypelem(tupdesc->attrs[fnumber - 1]->atttypid)));
|
||||
}
|
||||
|
||||
char *
|
||||
Datum
|
||||
SPI_getbinval(HeapTuple tuple, TupleDesc tupdesc, int fnumber, bool * isnull)
|
||||
{
|
||||
char *val;
|
||||
Datum val;
|
||||
|
||||
*isnull = true;
|
||||
SPI_result = 0;
|
||||
|
Reference in New Issue
Block a user