Re: [GENERAL] What's the correct way to use FunctionCallInvoke()?

2007-06-07 Thread Tom Lane
Zoltan Boszormenyi <[EMAIL PROTECTED]> writes: > FmgrInfo flinfo1; > MemSet(&flinfo1, 0, sizeof(flinfo1)); This is certainly not the approved way to set up an FmgrInfo. Use fmgr_info(). regards, tom lane ---(end of broadcast)-

[GENERAL] What's the correct way to use FunctionCallInvoke()?

2007-06-07 Thread Zoltan Boszormenyi
Hi, I have a problem calling a C function from another C function - DirectFunctionCall* cannot be used since some parameters may be NULL. This dies: FunctionCallInfoData fcinfo1; InitFunctionCallInfoData(fcinfo1, NULL, 7, NULL, NULL); /* arg[] and arnull[] are filled with correct values */