mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
94 lines
2.4 KiB
Text
94 lines
2.4 KiB
Text
# Author: Horst Hunger
|
|
# Created: 2010-07-13
|
|
|
|
--source include/not_windows.inc
|
|
--source include/have_partition.inc
|
|
--source include/have_symlink.inc
|
|
|
|
let $engine_table= MYISAM;
|
|
let $engine_part= MYISAM;
|
|
let $engine_subpart= MYISAM;
|
|
|
|
# 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
|
|
# Make directory for partition index
|
|
let $idx_dir_path= $MYSQLTEST_VARDIR/mysql-test-idx-dir;
|
|
--mkdir $idx_dir_path
|
|
let $p_index_directory= INDEX DIRECTORY = '$idx_dir_path';
|
|
let $index_directory= INDEX DIRECTORY = '$idx_dir_path';
|
|
|
|
use test;
|
|
|
|
--disable_result_log
|
|
--disable_query_log
|
|
--source suite/parts/inc/part_exch_tabs.inc
|
|
--enable_result_log
|
|
--enable_query_log
|
|
|
|
--error ER_TABLES_DIFFERENT_METADATA
|
|
ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10;
|
|
|
|
--source suite/parts/inc/part_exch_drop_tabs.inc
|
|
--rmdir $data_dir_path
|
|
--rmdir $idx_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
|
|
# Make directory for partition index
|
|
let $idx_dir_path= $MYSQLTEST_VARDIR/mysql-test-idx-dir;
|
|
--mkdir $idx_dir_path
|
|
let $p_index_directory= INDEX DIRECTORY = '$idx_dir_path';
|
|
|
|
use test;
|
|
|
|
--disable_result_log
|
|
--disable_query_log
|
|
--source suite/parts/inc/part_exch_tabs.inc
|
|
--enable_result_log
|
|
--enable_query_log
|
|
|
|
--error ER_TABLES_DIFFERENT_METADATA
|
|
ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10;
|
|
|
|
--source suite/parts/inc/part_exch_drop_tabs.inc
|
|
--rmdir $data_dir_path
|
|
--rmdir $idx_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
|
|
# Make directory for partition index
|
|
let $idx_dir_path= $MYSQLTEST_VARDIR/mysql-test-idx-dir;
|
|
--mkdir $idx_dir_path
|
|
let $index_directory= INDEX DIRECTORY = '$idx_dir_path';
|
|
|
|
use test;
|
|
|
|
--disable_result_log
|
|
--disable_query_log
|
|
--source suite/parts/inc/part_exch_tabs.inc
|
|
--enable_result_log
|
|
--enable_query_log
|
|
|
|
--error ER_TABLES_DIFFERENT_METADATA
|
|
ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10;
|
|
|
|
--source suite/parts/inc/part_exch_drop_tabs.inc
|
|
--rmdir $data_dir_path
|
|
--rmdir $idx_dir_path
|
|
|