• MySQL Build Team's avatar
    Backport into build-200911241145-5.1.40sp1 · 8b1103e0
    MySQL Build Team authored
    > ------------------------------------------------------------
    > revno: 3184.3.13
    > revision-id: joro@sun.com-20091019135504-e6fmhf4xyy0wdymb
    > parent: joro@sun.com-20091026095557-euhe1z9oxtgkw35h
    > committer: Georgi Kodinov <joro@sun.com>
    > branch nick: B47788-5.1-bugteam
    > timestamp: Mon 2009-10-19 16:55:04 +0300
    > message:
    >   Bug #47788: Crash in TABLE_LIST::hide_view_error on 
    >     UPDATE + VIEW + SP + MERGE + ALTER
    >   
    >   When cleaning up the stored procedure's internal 
    >   structures the flag to ignore the errors for 
    >   INSERT/UPDATE IGNORE was not cleaned up.
    >   As a result error ignoring was on during name 
    >   resolution. And this is an abnormal situation : the
    >   SELECT_LEX flag can be on only during query execution.
    >   
    >   Fixed by correctly cleaning up the SELECT_LEX flag 
    >   when reusing the SELECT_LEX in a second execution.
    8b1103e0
sql_prepare.cc 103 KB