--
Terry Dykstra (TeamSybase)
Techwave 2003 (PWB511: You Can Do That in InfoMaker? Cool!)
http://powerbuilder.codeXchange.sybase.com/
http://www.pb9books.com
<Alex_Osin> wrote in message
news:C8A3B9AFBF49EAE000519A9485256D65.0030EEF385256D65@webforums...
> JeePee,
>
> <> Why? <>
>
> boolean is not a SQL datatype.
>
> Oracle RDBMS doesn't have a boolean datatype.
>
> <> Have you a solution? <>
>
> 1. Recreate function using valid SQL datatype (NOT PLSQL).
>
> 2. Create "wrapper" to call your boolean function and return
> valid SQL datatype (VARCAHAR2 or CHAR or NUMBER).
>
> HTH
> Alex Osin
>
FUNCTION BOOLEAN lef_CheckVATNumber_b(STRING as_VATNumber) RPCFUNC ALIAS
FOR "~"PCK_BO_IMMUNITY~".~"SF_CHECKVATNUMBER~""
...and when I call the function like this:
lb_Return = SQLCA.lef_CheckVATNumber_b(ls_param)
... I have the following error message in SQLCA.SQLErrText (SQLCA.SQLCode
is equal -1 of course):
ORA-06550: line 1, column 22:
PLS-00382: expression is of wrong type
ORA-06550: line 1, column 15:
PL/SQL: Statement ignored
Why?
Have you a solution?
Thanks
JeePee