• gkodinov/kgeorge@macbook.gmz's avatar
    Bug #25382: Passing NULL to an UDF called from stored procedures · 20d94f11
    gkodinov/kgeorge@macbook.gmz authored
     crashes server
     Check for null value is reliable only after calling some of the 
     val_xxx() methods. If the val_xxx() method is not called
     the null_value flag will be set only for certain types of NULL
     values (like SQL constant NULLs for example).
     This caused a crash while trying to dereference a NULL pointer
     that is returned by val_str() for NULL values.
     Fixed by swapping the order of val_xxx() and null_value check.
    20d94f11
udf.result 8.79 KB