• MySQL Build Team's avatar
    Backport into build-201006221614-5.1.46sp1 · 4eefc2ab
    MySQL Build Team authored
    > ------------------------------------------------------------
    > revno: 3362
    > revision-id: davi.arnaut@sun.com-20100401131522-895y8uzvv8ag44gs
    > parent: ramil@mysql.com-20100429045409-r7r5lcyiruis15v7
    > committer: Davi Arnaut <Davi.Arnaut@Sun.COM>
    > branch nick: 50755-5.1
    > timestamp: Thu 2010-04-01 10:15:22 -0300
    > message:
    >   Bug#50755: Crash if stored routine def contains version comments
    >   
    >   The problem was that a syntactically invalid trigger could cause
    >   the server to crash when trying to list triggers. The crash would
    >   happen due to a mishap in the backup/restore procedure that should
    >   protect parser items which are not associated with the trigger. The
    >   backup/restore is used to isolate the parse tree (and context) of
    >   a statement from the load (and parsing) of a trigger. In this case,
    >   a error during the parsing of a trigger could cause the improper
    >   backup/restore sequence.
    >   
    >   The solution is to properly restore the original statement context
    >   before the parser is exited due to syntax errors in the trigger body.
    4eefc2ab
sp_head.cc 104 KB