Q: Pro*C and a PL/SQL function returning BOOLEAN
From: J. Wegener NOSPAM <xjw_at_xdde.xdk>
Date: Tue, 18 May 1999 14:15:09 +0200
Message-ID: <7hrlih$k3b$1_at_news101.telia.com>
Does anybody know which C datatype is equivalent to the PL/SQL BOOLEAN datatype? Consider this piece of code:
Date: Tue, 18 May 1999 14:15:09 +0200
Message-ID: <7hrlih$k3b$1_at_news101.telia.com>
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 addressReceived on Tue May 18 1999 - 14:15:09 CEST