• Igor Babaev's avatar
    Fixed LP bug #798576. · fb22eb13
    Igor Babaev authored
    If a view/derived table is non-mergeable then the definition of the tmp table
    to store the rows for it is created at the prepare stage. In this case if the
    view definition uses outer joins and a view column belongs to an inner table
    of one of them then the column should be considered as nullable independently
    on nullability of the underlying column. If the underlying column happens to be
    defined as non-nullable then the function create_tmp_field_from_item rather 
    than the function create_tmp_field_from_field should be employed to create
    the definition of the interesting column in the tmp table.
     
    fb22eb13
sql_select.cc 691 KB