From 0f1e39643de655f5103b09d5a82cadbf26a965c1 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 30 May 2000 04:25:00 +0000 Subject: Third round of fmgr updates: eliminate calls using fmgr() and fmgr_faddr() in favor of new-style calls. Lots of cleanup of sloppy casts to use XXXGetDatum and DatumGetXXX ... --- src/backend/executor/spi.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/backend/executor/spi.c') diff --git a/src/backend/executor/spi.c b/src/backend/executor/spi.c index 016d15ae8a..ac86695ee1 100644 --- a/src/backend/executor/spi.c +++ b/src/backend/executor/spi.c @@ -3,7 +3,7 @@ * spi.c * Server Programming Interface * - * $Id: spi.c,v 1.45 2000/04/04 21:44:39 tgl Exp $ + * $Id: spi.c,v 1.46 2000/05/30 04:24:45 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -415,8 +415,10 @@ SPI_getvalue(HeapTuple tuple, TupleDesc tupdesc, int fnumber) return NULL; } - return (fmgr(foutoid, val, typelem, - tupdesc->attrs[fnumber - 1]->atttypmod)); + return DatumGetCString(OidFunctionCall3(foutoid, + val, + ObjectIdGetDatum(typelem), + Int32GetDatum(tupdesc->attrs[fnumber - 1]->atttypmod))); } Datum -- cgit v1.2.1