text: # Author: Horst Hunger
  # Created: 2010-07-13
  
  # windows does not support symlink
  --source include/not_windows.inc
  
  let $engine_table= INNODB;
  let $engine_part= INNODB;
  let $engine_subpart= INNODB;
  
  # DATA DIRECTORY
  # Make directory for partition data
  let $data_dir_path= $MYSQLTEST_VARDIR/mysql-test-data-dir;
  --mkdir $data_dir_path
  let $p_data_directory= DATA DIRECTORY = '$data_dir_path';
  let $data_directory= DATA DIRECTORY = '$data_dir_path';
  
  # INDEX DIRECTORY is not supported by InnoDB for partitions.
  
  use test;
  
  --disable_result_log
  --disable_query_log
  --source suite/parts/inc/part_exch_tabs.inc
  --enable_result_log
  --enable_query_log
  
  ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10;
  
  --source suite/parts/inc/part_exch_drop_tabs.inc
  --rmdir $data_dir_path/test
  --rmdir $data_dir_path
  
  # DATA DIRECTORY
  # Make directory for partition data
  let $data_dir_path= $MYSQLTEST_VARDIR/mysql-test-data-dir;
  --mkdir $data_dir_path
  let $p_data_directory= DATA DIRECTORY = '$data_dir_path';
  
  # INDEX DIRECTORY is not supported by InnoDB for partitions.
  
  use test;
  
  --disable_result_log
  --disable_query_log
  --source suite/parts/inc/part_exch_tabs.inc
  --enable_result_log
  --enable_query_log
  
  ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10;
  
  --source suite/parts/inc/part_exch_drop_tabs.inc
  --rmdir $data_dir_path/test
  --rmdir $data_dir_path
  
  # DATA DIRECTORY
  # Make directory for partition data
  let $data_dir_path= $MYSQLTEST_VARDIR/mysql-test-data-dir;
  --mkdir $data_dir_path
  let $data_directory= DATA DIRECTORY = '$data_dir_path';
  
  # INDEX DIRECTORY is not supported by InnoDB for partitions.
  
  use test;
  
  --disable_result_log
  --disable_query_log
  --source suite/parts/inc/part_exch_tabs.inc
  --enable_result_log
  --enable_query_log
  
  ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10;
  
  --source suite/parts/inc/part_exch_drop_tabs.inc
  --rmdir $data_dir_path/test
  --rmdir $data_dir_path
  
  