ISNUM, ISINT - incorrect behaviour
Posted in 1998
Taras Kopach — — source: Informix-list mailing list archive (1991-1998)
Hi All,
I've found that in Web Datablade release 3.32.TC3 the functions ISNUM and
ISINT process incorrectly empty strings and white spaces. According to
release notes the bug number 85473 related to these functions was fixed in
current release. But following example shows a bit strange result :
execute function webexplode("<?MIVAR NAME=o DEFAULT=>$o<?/MIVAR><?MIVAR>$(IF,$(ISNUM,$o),T,F)<?/MIVAR>"
,"")
The resulting html string should be "F" because variable "$o" has been
initialized as an empty string but in this release we receive "T".
I wonder is this bug or Informix decided to treat white spaces and empty
strings as numbers.
Thanks,
Taras.