• Georgi Kodinov's avatar
    Bug #55565: debug assertion when ordering by expressions with user · 9ea88d7e
    Georgi Kodinov authored
    variable assignments
    
    The assert() that is firing is checking if expressions that can't be
    null return a NULL when evaluated.
    MAKEDATE() function can return NULL if the second argument is 
    less then or equal to 0. Thus its nullability depends not only on 
    the nullability of its arguments but also on their values.
    Fixed by (overoptimistically) setting MAKEDATE() to be nullable 
    despite the nullability of its arguments.
    Test added.
    Had to update one test result to reflect the metadata change.
    9ea88d7e
func_time.test 35.5 KB