• Vamsikrishna Bhagi's avatar
    Bug#14463669 FAILURE TO CORRECTLY PARSE ROUTINES IN · f1e9b721
    Vamsikrishna Bhagi authored
                 MYSQLDUMP OUTPUT
    
    Problem: mysqldump when used with option --routines, dumps
             all the routines of the specified database into
             output. The statements in this output are written
             in such a way that they are version safe using C
             style version commenting (of the format
             /*!<version num> <sql statement>*/). If a semicolon
             is present right before closing of the comment in
             dump output, it results in a syntax error while
             importing.
    
    
    Solution: Version comments for dumped routines are
              specifically to protect the ones older than 5.0.
              When the import is done on 5.0 or later versions,
              entire create statement gets executed as all the
              check conditions at the beginning of the comments
              are cleared. Since the trade off is between the
              performance of newer versions which are more in
              use and protection of very old versions which are
              no longer supported, it is proposed that these
              comments be removed altogether to maintain
              stability of the versions supported.
    f1e9b721
mysqldump.result 217 KB