• unknown's avatar
    Bug#28223: mysqldump --compact --routines restores from @OLD_SQL_MODE w/o ever setting it · e675d257
    unknown authored
      - mysqldump generated output that set OLD_SQL_MODE twice, to different values
        (for triggers), or not at all (for routines) in some cases.
    
    
    client/mysqldump.c:
      Only save SQL_MODE in dump_triggers if in --compact mode. Otherwise,
      it's already been saved in write_header(). Likewise for dumpe_routines,
      where it was never saved.
    mysql-test/r/mysqldump.result:
      mysqldump output has subtly changed. Adjust test-results. This also shows
      OLD_SQL_MODE is always set exactly once now
    e675d257
mysqldump.c 120 KB