David Rowley <dgrowleyml(at)gmail(dot)com> writes:> I'd say the fix should be to just datumCopy() the result of the> calculation. i.e the attached.
That looks like it'll fail on a null result.
regards, tom lane