• unknown's avatar
    This cset fixes BUG# 12838, 14061, 12129 · cecdc15a
    unknown authored
    mysqldump.result:
      BUG# 12838
          New test results for mysqldump -x on a DB with views
    mysqldump.test:
      sqldump.test:
          BUG# 12838
          New test to run mysqldump -x on a DB with views
    mysqldump.c:
      BUG# 12838
          Removed/Changed code which created tables to be put into the dump
          (For loading views of views) by creating temp tables and then using
          the CREATE TABLE information in those temp tables. The problem with this
          is that when mysqldump -x is called, it locks all tables, so the
          temp tables could not be created, causing the mysqldump to exit with
          failure. The code was changed to use SHOW FIELDS to get the column
          names and type to build CREATE TABLE text used to create these tables
          that views need in the dump.
    
    
    client/mysqldump.c:
      BUG# 12838
          Removed/Changed code which created tables to be put into the dump
          (For loading views of views) by creating temp tables and then using
          the CREATE TABLE information in those temp tables. The problem with this
          is that when mysqldump -x is called, it locks all tables, so the
          temp tables could not be created, causing the mysqldump to exit with
          failure. The code was changed to use SHOW FIELDS to get the column
          names and type to build CREATE TABLE text used to create these tables
          that views need in the dump.
    mysql-test/t/mysqldump.test:
      sqldump.test:
          BUG# 12838
          New test to run mysqldump -x on a DB with views
    mysql-test/r/mysqldump.result:
      BUG# 12838
          New test results for mysqldump -x on a DB with views
    cecdc15a
mysqldump.c 99.8 KB