• unknown's avatar
    Bug #28488: Incorrect information in file: './test/t1_test#.frm' · fce63f8f
    unknown authored
    While executing ALTER TABLE ... PARTITION the server uses 
    a temporary "shadow" table to create the updated table.
    This shadow table then gets renamed as the original table.
    The shadow table was not prefixed with the special prefix that
    marks temporary tables so it was picked up by SHOW TABLE STATUS.
    Fixed by isolating the code to create the shadow table name in a
    separate function and prefixing the shadow table name with the
    special prefix to exclude it from the list of user tables.
    See bug 18775 and WL1324 for details.
    
    
    mysql-test/r/partition.result:
      Bug #28488: test case
    mysql-test/t/partition.test:
      Bug #28488: test case
    sql/mysql_priv.h:
      Bug #28488: prefix shadow file with the temp prefix
    sql/sql_partition.cc:
      Bug #28488: prefix shadow file with the temp prefix
    sql/sql_table.cc:
      Bug #28488: prefix shadow file with the temp prefix
    fce63f8f
sql_table.cc 225 KB