question about IFNULL
We're experiencing random crashes of our application, we're currently suspicious of the IFNULL function.
Old code which used to be:
IF myclass.type_i2 is null OR
myclass.type_i2 = 0 THEN
has been replaced with
IF ifnull(myclass.type_i2,0) = 0 THEN
In this particular case type_i2 is an attribute on a class (obviously), and is smallint and nullable default value is "SYSTEM".
The new IFNULL code, seems to crash the app, replacing the code to how it was restores stability.
Has anything changed with respect to the IFNULL function?
And just for completion exactly what is the default value for "SYSTEM" for a nullable attribute these days?
OR 5.1.0 (int.w32/00)
BUILDNO=5044
PATCHNO=14141
Last edited by petew1970; 2012-02-02 at 07:12 AM.
|