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.
Andreas Zeugswetter — — source: Informix-list mailing list archive (1991-1998)
> 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
Try:
create procedure if_null(what int default null) returning int; ^^^^^^^^^^^^
if what is null
then return 0;
else return what;
end if;
end procedure;
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.