polardbxengine/mysql-test/suite/innodb/t/upgrade_partition.test

56 lines
2.2 KiB
Plaintext

############################################################################################
# Bug#28869903 MISSING INFO ON PARTITIONED TABLES IN I_S.INNODB_COLUMNS AFTER UPGRADE TO 8.0
############################################################################################
--source include/have_debug.inc
--source include/not_valgrind.inc
--source include/have_case_sensitive_file_system.inc
--echo #
--echo # This test upgrades a partitioned table from 5.7 to 8.0.x and
--echo # checks that INFORMATION_SCHEMA.INNODB_COLUMNS shows columns
--echo # for all the partitions
--echo #
--echo # Stop the running the server
--source include/shutdown_mysqld.inc
--echo ######################################################################
--echo # Unzip a 5.7 datadir with partitioned table, start the server using
--echo # this directory
--echo ######################################################################
--echo ######################################################################
--echo # Copy and unzip the datadir.
--echo ######################################################################
--copy_file $MYSQLTEST_VARDIR/std_data/data57_partition.zip $MYSQL_TMP_DIR/data57_partition.zip
--file_exists $MYSQL_TMP_DIR/data57_partition.zip
--exec unzip -qo $MYSQL_TMP_DIR/data57_partition.zip -d $MYSQL_TMP_DIR
let $BUGDATADIR = $MYSQL_TMP_DIR/data57_partition;
--echo # Restart the server against the unzipped datadir
--replace_result $BUGDATADIR BUGDATADIR
--let $restart_parameters = restart: --datadir=$BUGDATADIR --innodb_page_size=16k
--let $wait_counter=3000
--source include/start_mysqld.inc
--echo # Checks the contents of INFORMATION_SCHEMA.INNODB_COLUMNS
SELECT lower(t.name), lower(c.name) FROM
INFORMATION_SCHEMA.INNODB_COLUMNS c
JOIN INFORMATION_SCHEMA.INNODB_TABLES t
WHERE t.table_id=c.table_id AND t.name LIKE '%t1%'
ORDER BY t.name, c.name;
--echo # Cleanup
--echo # Shutdown server
--source include/shutdown_mysqld.inc
--echo # Remove copied files
--file_exists $MYSQL_TMP_DIR/data57_partition.zip
--force-rmdir $MYSQL_TMP_DIR/data57_partition
--remove_file $MYSQL_TMP_DIR/data57_partition.zip
--echo # Resart the server
let $restart_parameters =;
--source include/start_mysqld.inc