Re: [HACKERS] I can't get row type from tuple (SPI)

2005-12-03 Thread Bruce Momjian
Added to TODO: * Add SPI_gettypmod() to return the typemod for a TupleDesc --- Tom Lane wrote: > "Pavel Stehule" <[EMAIL PROTECTED]> writes: > > rettupdesc = lookup_rowtype_tupdesc(rettype,0); > > This is wrong --

Re: [HACKERS] I can't get row type from tuple (SPI)

2005-11-06 Thread Tom Lane
"Pavel Stehule" <[EMAIL PROTECTED]> writes: > rettupdesc = lookup_rowtype_tupdesc(rettype,0); This is wrong --- if you don't know what typmod to use, *always* pass -1 not 0. (I suspect that rettype is RECORD and that -1 would have resulted in a NULL result.) It seems like SPI is missing a needed