• aelkin@mysql.com's avatar
    BUG#17265 Assertion failure in rpl_row_view01. · 4155d140
    aelkin@mysql.com authored
    To quote Timour review lines:
    
    The actual cause of the bug is that sql_base.cc:setup_wild()
    sets "select_lex->with_wild = 0" (in the end of the function) once
    it expands all wild-cards, and wild-card expansion is done during
    the prepare phase. During this phase we replace all "*" with the
    corresponding items, which for views happen to be references to
    references. When we do execute, select_lex->with_wild = 0, and
    all "*" are already replaced by the corresponding items, which
    in the case of views need to be dereferenced first.
    
    Fixed by refining the assert. Regression test for the bug is rpl_row_view01,
    as was reported.
    4155d140
item.cc 164 KB