Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Q: Pro*C and a PL/SQL function returning BOOLEAN
Does anybody know which C datatype is equivalent to the PL/SQL BOOLEAN
datatype? Consider this piece of code:
EXEC SQL BEGIN DECLARE SECTION;
static WHICHTYPEHERE b_IsRunning;
EXEC SQL END DECLARE SECTION;
BOOL SomeFunction(void)
{
EXEC SQL EXECUTE
BEGIN
:b_IsRunning := SomePackage.SomeFunctionThatReturnsBool;
END;
END-EXEC;
return (WHICHTYPEHERE == TRUE);
}
This example, regardless of C type (WHICHTYPEHERE in (char, long, float))
returns the following error:
"LS-S-00306, wrong number or types of arguments in call to
'SomeFunctionThatReturnsBool'"
Any help is greatly appreciated, thanks..
Cheers
Johan
--
Johan Wegener
Dansk Data Elektronik A/S
Reply to: xjw_at_xdde.xdk
NOSPAM: Delete xxx from my email address
Received on Tue May 18 1999 - 07:15:09 CDT
![]() |
![]() |