Mario Weilguni <[EMAIL PROTECTED]> writes:
>           float8 num3 = numeric_float8(num1);

That won't work in the brave new world of 7.1 :-(.  You need to do
something like

        float8 num3 = DatumGetFloat8(DirectFunctionCall1(numeric_float8,
                                        NumericGetDatum(num1)));

Ugly, I know ... but we have to be rigidly careful about converting
values to Datum and back in order to avoid portability problems.

A decent C compiler should've warned about type mismatches in your call,
BTW.

                        regards, tom lane

Reply via email to