• vva@eagle.mysql.r18.ru's avatar
    fixed Bug #4358 Problem with HAVING clause that uses alias · 54067096
    vva@eagle.mysql.r18.ru authored
           from the select list and TEXT field 
    
    make setup_copy_fields to insert Item_copy_string for blobs in 
    the beginning of the copy_funcs (push_back instead of push_front)
    
    the thing is that Item_copy_string::copy for function can call 
    Item_copy_string::val_int for blob via Item_ref.
    But if Item_copy_string::copy for blob isn't called before, 
    it's value will be wrong.
    
    So all the Item_copy_string::copy for blobs should be called before 
    Item_copy_string::copy for functions.
    54067096
sql_select.cc 216 KB