Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Felix Mathews — — source: Informix-list mailing list archive (1991-1998)
Alexander V.Didytch wrote:
> <snip>
> create procedure if_null(what int)
> returning int;>
> if what is null
> then return 0;
> else return what;
>
> end if;
> end procedure;
>
> And now lets call it:
>
> execute procedure if_null(null)>
> In 7.2x its returns 0,
> in 7.3 it tells the following error:
> SQL Error (-696) variable (what ) has undefined value
>
<snip>
Hi - Alexander,
I don't know about any (N)ew (T)rouble bugs in 7.30, but in Unix IDS 7.2x
and 7.30 gives following results from dbaccess :
execute procedure if_null(1);
(expression)
1
execute procedure if_null(null);
(expression)
0
--
Have a nice day
Felix K. Mathews
mailto:fmathews@systems.dhl.com
file:////QUASAR/ifmx_app/web/ibs/ibs_61_db/ibs61_db.htm ( IBS 6.1.0 Schema )
file:////QUASAR/ifmx_app/web/ibs/ibs_60_db/ibs60_db.htm ( IBS 6.0.0 Schema )
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.