Louis-David Mitterrand <[EMAIL PROTECTED]> writes:
> In the provided example SPI functions I couldn't determine a good way of
> testing for NULL on columns. Should I first try to return the Datum,
> test it for NULL, then run DatumGetFloat64() on it? Isn't there a
> simpler way?

Yes.  No.  The Datum is a pointer, so if you indirect through it
before having checked for null-ness, you WILL get a crash.

                        regards, tom lane

Reply via email to