Commit 3df9f94f authored by unknown's avatar unknown

shorten filenames


mysql-test/suite/parts/r/ndb_blob_partition.result:
  Rename: mysql-test/suite/partitions/r/ndb_blob_partition.result -> mysql-test/suite/parts/r/ndb_blob_partition.result
mysql-test/suite/parts/r/ndb_dd_backuprestore.result:
  Rename: mysql-test/suite/partitions/r/ndb_dd_backuprestore.result -> mysql-test/suite/parts/r/ndb_dd_backuprestore.result
mysql-test/suite/parts/r/ndb_partition_error.result:
  Rename: mysql-test/suite/partitions/r/ndb_partition_error.result -> mysql-test/suite/parts/r/ndb_partition_error.result
mysql-test/suite/parts/r/ndb_partition_list.result:
  Rename: mysql-test/suite/partitions/r/ndb_partition_list.result -> mysql-test/suite/parts/r/ndb_partition_list.result
mysql-test/suite/parts/r/ndb_partition_range.result:
  Rename: mysql-test/suite/partitions/r/ndb_partition_range.result -> mysql-test/suite/parts/r/ndb_partition_range.result
mysql-test/suite/parts/r/partition_alter1_innodb.result:
  Rename: mysql-test/suite/partitions/r/partition_alter1_innodb.result -> mysql-test/suite/parts/r/partition_alter1_innodb.result
mysql-test/suite/parts/r/partition_alter1_myisam.result:
  Rename: mysql-test/suite/partitions/r/partition_alter1_myisam.result -> mysql-test/suite/parts/r/partition_alter1_myisam.result
mysql-test/suite/parts/r/partition_alter2_innodb.result:
  Rename: mysql-test/suite/partitions/r/partition_alter2_innodb.result -> mysql-test/suite/parts/r/partition_alter2_innodb.result
mysql-test/suite/parts/r/partition_alter2_myisam.result:
  Rename: mysql-test/suite/partitions/r/partition_alter2_myisam.result -> mysql-test/suite/parts/r/partition_alter2_myisam.result
mysql-test/suite/parts/r/partition_alter3_innodb.result:
  Rename: mysql-test/suite/partitions/r/partition_alter3_innodb.result -> mysql-test/suite/parts/r/partition_alter3_innodb.result
mysql-test/suite/parts/r/partition_alter3_myisam.result:
  Rename: mysql-test/suite/partitions/r/partition_alter3_myisam.result -> mysql-test/suite/parts/r/partition_alter3_myisam.result
mysql-test/suite/parts/r/partition_alter4_innodb.result:
  Rename: mysql-test/suite/partitions/r/partition_alter4_innodb.result -> mysql-test/suite/parts/r/partition_alter4_innodb.result
mysql-test/suite/parts/r/partition_alter4_myisam.result:
  Rename: mysql-test/suite/partitions/r/partition_alter4_myisam.result -> mysql-test/suite/parts/r/partition_alter4_myisam.result
mysql-test/suite/parts/r/partition_basic_innodb.result:
  Rename: mysql-test/suite/partitions/r/partition_basic_innodb.result -> mysql-test/suite/parts/r/partition_basic_innodb.result
mysql-test/suite/parts/r/partition_basic_myisam.result:
  Rename: mysql-test/suite/partitions/r/partition_basic_myisam.result -> mysql-test/suite/parts/r/partition_basic_myisam.result
mysql-test/suite/parts/r/partition_bit_innodb.result:
  Rename: mysql-test/suite/partitions/r/partition_bit_innodb.result -> mysql-test/suite/parts/r/partition_bit_innodb.result
mysql-test/suite/parts/r/partition_bit_myisam.result:
  Rename: mysql-test/suite/partitions/r/partition_bit_myisam.result -> mysql-test/suite/parts/r/partition_bit_myisam.result
mysql-test/suite/parts/r/partition_bit_ndb.result:
  Rename: mysql-test/suite/partitions/r/partition_bit_ndb.result -> mysql-test/suite/parts/r/partition_bit_ndb.result
mysql-test/suite/parts/r/partition_char_innodb.result:
  Rename: mysql-test/suite/partitions/r/partition_char_innodb.result -> mysql-test/suite/parts/r/partition_char_innodb.result
mysql-test/suite/parts/r/partition_char_myisam.result:
  Rename: mysql-test/suite/partitions/r/partition_char_myisam.result -> mysql-test/suite/parts/r/partition_char_myisam.result
mysql-test/suite/parts/r/partition_datetime_innodb.result:
  Rename: mysql-test/suite/partitions/r/partition_datetime_innodb.result -> mysql-test/suite/parts/r/partition_datetime_innodb.result
mysql-test/suite/parts/r/partition_datetime_myisam.result:
  Rename: mysql-test/suite/partitions/r/partition_datetime_myisam.result -> mysql-test/suite/parts/r/partition_datetime_myisam.result
mysql-test/suite/parts/r/partition_decimal_innodb.result:
  Rename: mysql-test/suite/partitions/r/partition_decimal_innodb.result -> mysql-test/suite/parts/r/partition_decimal_innodb.result
mysql-test/suite/parts/r/partition_decimal_myisam.result:
  Rename: mysql-test/suite/partitions/r/partition_decimal_myisam.result -> mysql-test/suite/parts/r/partition_decimal_myisam.result
mysql-test/suite/parts/r/partition_engine_innodb.result:
  Rename: mysql-test/suite/partitions/r/partition_engine_innodb.result -> mysql-test/suite/parts/r/partition_engine_innodb.result
mysql-test/suite/parts/r/partition_engine_myisam.result:
  Rename: mysql-test/suite/partitions/r/partition_engine_myisam.result -> mysql-test/suite/parts/r/partition_engine_myisam.result
mysql-test/suite/parts/r/partition_engine_ndb.result:
  Rename: mysql-test/suite/partitions/r/partition_engine_ndb.result -> mysql-test/suite/parts/r/partition_engine_ndb.result
mysql-test/suite/parts/r/partition_float_innodb.result:
  Rename: mysql-test/suite/partitions/r/partition_float_innodb.result -> mysql-test/suite/parts/r/partition_float_innodb.result
mysql-test/suite/parts/r/partition_float_myisam.result:
  Rename: mysql-test/suite/partitions/r/partition_float_myisam.result -> mysql-test/suite/parts/r/partition_float_myisam.result
mysql-test/suite/parts/r/partition_int_innodb.result:
  Rename: mysql-test/suite/partitions/r/partition_int_innodb.result -> mysql-test/suite/parts/r/partition_int_innodb.result
mysql-test/suite/parts/r/partition_int_myisam.result:
  Rename: mysql-test/suite/partitions/r/partition_int_myisam.result -> mysql-test/suite/parts/r/partition_int_myisam.result
mysql-test/suite/parts/r/partition_int_ndb.result:
  Rename: mysql-test/suite/partitions/r/partition_int_ndb.result -> mysql-test/suite/parts/r/partition_int_ndb.result
mysql-test/suite/parts/r/partition_special_innodb.result:
  Rename: mysql-test/suite/partitions/r/partition_special_innodb.result -> mysql-test/suite/parts/r/partition_special_innodb.result
mysql-test/suite/parts/r/partition_special_myisam.result:
  Rename: mysql-test/suite/partitions/r/partition_special_myisam.result -> mysql-test/suite/parts/r/partition_special_myisam.result
mysql-test/suite/parts/r/partition_syntax_innodb.result:
  Rename: mysql-test/suite/partitions/r/partition_syntax_innodb.result -> mysql-test/suite/parts/r/partition_syntax_innodb.result
mysql-test/suite/parts/r/partition_syntax_myisam.result:
  Rename: mysql-test/suite/partitions/r/partition_syntax_myisam.result -> mysql-test/suite/parts/r/partition_syntax_myisam.result
mysql-test/suite/parts/r/partition_syntax_ndb.result:
  Rename: mysql-test/suite/partitions/r/partition_syntax_ndb.result -> mysql-test/suite/parts/r/partition_syntax_ndb.result
mysql-test/suite/parts/r/partition_t55.out:
  Rename: mysql-test/suite/partitions/r/partition_t55.out -> mysql-test/suite/parts/r/partition_t55.out
mysql-test/suite/parts/r/partition_value_innodb.result:
  Rename: mysql-test/suite/partitions/r/partition_value_innodb.result -> mysql-test/suite/parts/r/partition_value_innodb.result
mysql-test/suite/parts/r/partition_value_myisam.result:
  Rename: mysql-test/suite/partitions/r/partition_value_myisam.result -> mysql-test/suite/parts/r/partition_value_myisam.result
mysql-test/suite/parts/r/partition_value_ndb.result:
  Rename: mysql-test/suite/partitions/r/partition_value_ndb.result -> mysql-test/suite/parts/r/partition_value_ndb.result
mysql-test/suite/parts/r/rpl_ndb_dd_partitions.result:
  Rename: mysql-test/suite/partitions/r/rpl_ndb_dd_partitions.result -> mysql-test/suite/parts/r/rpl_ndb_dd_partitions.result
mysql-test/suite/parts/t/disabled.def:
  Rename: mysql-test/suite/partitions/t/disabled.def -> mysql-test/suite/parts/t/disabled.def
mysql-test/suite/parts/t/ndb_blob_partition.test:
  Rename: mysql-test/suite/partitions/t/ndb_blob_partition.test -> mysql-test/suite/parts/t/ndb_blob_partition.test
mysql-test/suite/parts/t/ndb_dd_backuprestore.test:
  Rename: mysql-test/suite/partitions/t/ndb_dd_backuprestore.test -> mysql-test/suite/parts/t/ndb_dd_backuprestore.test
mysql-test/suite/parts/t/ndb_partition_error.test:
  Rename: mysql-test/suite/partitions/t/ndb_partition_error.test -> mysql-test/suite/parts/t/ndb_partition_error.test
mysql-test/suite/parts/t/ndb_partition_key.test:
  Rename: mysql-test/suite/partitions/t/ndb_partition_key.test -> mysql-test/suite/parts/t/ndb_partition_key.test
mysql-test/suite/parts/t/ndb_partition_list.test:
  Rename: mysql-test/suite/partitions/t/ndb_partition_list.test -> mysql-test/suite/parts/t/ndb_partition_list.test
mysql-test/suite/parts/t/ndb_partition_range.test:
  Rename: mysql-test/suite/partitions/t/ndb_partition_range.test -> mysql-test/suite/parts/t/ndb_partition_range.test
mysql-test/suite/parts/t/partition_sessions.test:
  Rename: mysql-test/suite/partitions/t/partition_sessions.test -> mysql-test/suite/parts/t/partition_sessions.test
mysql-test/suite/parts/t/rpl_ndb_dd_partitions.test:
  Rename: mysql-test/suite/partitions/t/rpl_ndb_dd_partitions.test -> mysql-test/suite/parts/t/rpl_ndb_dd_partitions.test
mysql-test/suite/parts/inc/partition.pre:
  Rename: mysql-test/suite/parts/include/partition.pre -> mysql-test/suite/parts/inc/partition.pre
mysql-test/suite/parts/inc/partition_20.inc:
  Rename: mysql-test/suite/parts/include/partition_20.inc -> mysql-test/suite/parts/inc/partition_20.inc
mysql-test/suite/parts/inc/partition_bigint.inc:
  Rename: mysql-test/suite/parts/include/partition_bigint.inc -> mysql-test/suite/parts/inc/partition_bigint.inc
mysql-test/suite/parts/inc/partition_binary.inc:
  Rename: mysql-test/suite/parts/include/partition_binary.inc -> mysql-test/suite/parts/inc/partition_binary.inc
mysql-test/suite/parts/inc/partition_bit.inc:
  Rename: mysql-test/suite/parts/include/partition_bit.inc -> mysql-test/suite/parts/inc/partition_bit.inc
mysql-test/suite/parts/inc/partition_blob.inc:
  Rename: mysql-test/suite/parts/include/partition_blob.inc -> mysql-test/suite/parts/inc/partition_blob.inc
mysql-test/suite/parts/inc/partition_blocked_sql_funcs.inc:
  Rename: mysql-test/suite/parts/include/partition_blocked_sql_funcs.inc -> mysql-test/suite/parts/inc/partition_blocked_sql_funcs.inc
mysql-test/suite/parts/inc/partition_char.inc:
  Rename: mysql-test/suite/parts/include/partition_char.inc -> mysql-test/suite/parts/inc/partition_char.inc
mysql-test/suite/parts/inc/partition_check_drop.inc:
  Rename: mysql-test/suite/parts/include/partition_check_drop.inc -> mysql-test/suite/parts/inc/partition_check_drop.inc
mysql-test/suite/parts/inc/partition_check_read.inc:
  Rename: mysql-test/suite/parts/include/partition_check_read.inc -> mysql-test/suite/parts/inc/partition_check_read.inc
mysql-test/suite/parts/inc/partition_check_read1.inc:
  Rename: mysql-test/suite/parts/include/partition_check_read1.inc -> mysql-test/suite/parts/inc/partition_check_read1.inc
mysql-test/suite/parts/inc/partition_check_read2.inc:
  Rename: mysql-test/suite/parts/include/partition_check_read2.inc -> mysql-test/suite/parts/inc/partition_check_read2.inc
mysql-test/suite/parts/inc/partition_cleanup.inc:
  Rename: mysql-test/suite/parts/include/partition_cleanup.inc -> mysql-test/suite/parts/inc/partition_cleanup.inc
mysql-test/suite/parts/inc/partition_date.inc:
  Rename: mysql-test/suite/parts/include/partition_date.inc -> mysql-test/suite/parts/inc/partition_date.inc
mysql-test/suite/parts/inc/partition_datetime.inc:
  Rename: mysql-test/suite/parts/include/partition_datetime.inc -> mysql-test/suite/parts/inc/partition_datetime.inc
mysql-test/suite/parts/inc/partition_decimal.inc:
  Rename: mysql-test/suite/parts/include/partition_decimal.inc -> mysql-test/suite/parts/inc/partition_decimal.inc
mysql-test/suite/parts/inc/partition_double.inc:
  Rename: mysql-test/suite/parts/include/partition_double.inc -> mysql-test/suite/parts/inc/partition_double.inc
mysql-test/suite/parts/inc/partition_enum.inc:
  Rename: mysql-test/suite/parts/include/partition_enum.inc -> mysql-test/suite/parts/inc/partition_enum.inc
mysql-test/suite/parts/inc/partition_float.inc:
  Rename: mysql-test/suite/parts/include/partition_float.inc -> mysql-test/suite/parts/inc/partition_float.inc
mysql-test/suite/parts/inc/partition_int.inc:
  Rename: mysql-test/suite/parts/include/partition_int.inc -> mysql-test/suite/parts/inc/partition_int.inc
mysql-test/suite/parts/inc/partition_key_16col.inc:
  Rename: mysql-test/suite/parts/include/partition_key_16col.inc -> mysql-test/suite/parts/inc/partition_key_16col.inc
mysql-test/suite/parts/inc/partition_key_32col.inc:
  Rename: mysql-test/suite/parts/include/partition_key_32col.inc -> mysql-test/suite/parts/inc/partition_key_32col.inc
mysql-test/suite/parts/inc/partition_key_4col.inc:
  Rename: mysql-test/suite/parts/include/partition_key_4col.inc -> mysql-test/suite/parts/inc/partition_key_4col.inc
mysql-test/suite/parts/inc/partition_key_8col.inc:
  Rename: mysql-test/suite/parts/include/partition_key_8col.inc -> mysql-test/suite/parts/inc/partition_key_8col.inc
mysql-test/suite/parts/inc/partition_layout_check1.inc:
  Rename: mysql-test/suite/parts/include/partition_layout_check1.inc -> mysql-test/suite/parts/inc/partition_layout_check1.inc
mysql-test/suite/parts/inc/partition_layout_check2.inc:
  Rename: mysql-test/suite/parts/include/partition_layout_check2.inc -> mysql-test/suite/parts/inc/partition_layout_check2.inc
mysql-test/suite/parts/inc/partition_mediumint.inc:
  Rename: mysql-test/suite/parts/include/partition_mediumint.inc -> mysql-test/suite/parts/inc/partition_mediumint.inc
mysql-test/suite/parts/inc/partition_set.inc:
  Rename: mysql-test/suite/parts/include/partition_set.inc -> mysql-test/suite/parts/inc/partition_set.inc
mysql-test/suite/parts/inc/partition_smallint.inc:
  Rename: mysql-test/suite/parts/include/partition_smallint.inc -> mysql-test/suite/parts/inc/partition_smallint.inc
mysql-test/suite/parts/inc/partition_text.inc:
  Rename: mysql-test/suite/parts/include/partition_text.inc -> mysql-test/suite/parts/inc/partition_text.inc
mysql-test/suite/parts/inc/partition_time.inc:
  Rename: mysql-test/suite/parts/include/partition_time.inc -> mysql-test/suite/parts/inc/partition_time.inc
mysql-test/suite/parts/inc/partition_timestamp.inc:
  Rename: mysql-test/suite/parts/include/partition_timestamp.inc -> mysql-test/suite/parts/inc/partition_timestamp.inc
mysql-test/suite/parts/inc/partition_tinyint.inc:
  Rename: mysql-test/suite/parts/include/partition_tinyint.inc -> mysql-test/suite/parts/inc/partition_tinyint.inc
mysql-test/suite/parts/inc/partition_trigg1.inc:
  Rename: mysql-test/suite/parts/include/partition_trigg1.inc -> mysql-test/suite/parts/inc/partition_trigg1.inc
mysql-test/suite/parts/inc/partition_trigg2.inc:
  Rename: mysql-test/suite/parts/include/partition_trigg2.inc -> mysql-test/suite/parts/inc/partition_trigg2.inc
mysql-test/suite/parts/inc/partition_trigg3.inc:
  Rename: mysql-test/suite/parts/include/partition_trigg3.inc -> mysql-test/suite/parts/inc/partition_trigg3.inc
mysql-test/suite/parts/inc/partition_value.inc:
  Rename: mysql-test/suite/parts/include/partition_value.inc -> mysql-test/suite/parts/inc/partition_value.inc
mysql-test/suite/parts/inc/partition_varbinary.inc:
  Rename: mysql-test/suite/parts/include/partition_varbinary.inc -> mysql-test/suite/parts/inc/partition_varbinary.inc
mysql-test/suite/parts/inc/partition_varchar.inc:
  Rename: mysql-test/suite/parts/include/partition_varchar.inc -> mysql-test/suite/parts/inc/partition_varchar.inc
mysql-test/suite/parts/inc/partition_year.inc:
  Rename: mysql-test/suite/parts/include/partition_year.inc -> mysql-test/suite/parts/inc/partition_year.inc
mysql-test/suite/parts/inc/part_supported_sql_funcs_int_ch1.inc:
  Rename: mysql-test/suite/parts/inc/partition_supported_sql_funcs_int_ch1.in -> mysql-test/suite/parts/inc/part_supported_sql_funcs_int_ch1.inc
mysql-test/suite/parts/inc/part_supported_sql_funcs_int_date.inc:
  Rename: mysql-test/suite/parts/inc/partition_supported_sql_funcs_int_date.in -> mysql-test/suite/parts/inc/part_supported_sql_funcs_int_date.inc
mysql-test/suite/parts/inc/part_supported_sql_funcs_int_float.inc:
  Rename: mysql-test/suite/parts/inc/partition_supported_sql_funcs_int_float.in -> mysql-test/suite/parts/inc/part_supported_sql_funcs_int_float.inc
mysql-test/suite/parts/inc/part_supported_sql_funcs_int_int.inc:
  Rename: mysql-test/suite/parts/inc/partition_supported_sql_funcs_int_int.in -> mysql-test/suite/parts/inc/part_supported_sql_funcs_int_int.inc
mysql-test/suite/parts/r/part_blocked_sql_func_innodb.result:
  Rename: mysql-test/suite/parts/r/partition_blocked_sql_func_innodb.result -> mysql-test/suite/parts/r/part_blocked_sql_func_innodb.result
mysql-test/suite/parts/r/part_blocked_sql_func_myisam.result:
  Rename: mysql-test/suite/parts/r/partition_blocked_sql_func_myisam.result -> mysql-test/suite/parts/r/part_blocked_sql_func_myisam.result
mysql-test/suite/parts/r/part_supported_sql_func_ndb.result:
  Rename: mysql-test/suite/parts/r/partition_supported_sql_func_ndb.result -> mysql-test/suite/parts/r/part_supported_sql_func_ndb.result
mysql-test/suite/parts/inc/part_supported_sql_funcs_int_time.inc:
  Rename: mysql-test/suite/parts/inc/part_supported_sql_funcs_int_time.cin -> mysql-test/suite/parts/inc/part_supported_sql_funcs_int_time.inc
parent 1fb5a61c
...@@ -51,7 +51,7 @@ $unique ...@@ -51,7 +51,7 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -66,7 +66,7 @@ $unique ...@@ -66,7 +66,7 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -89,7 +89,7 @@ $unique ...@@ -89,7 +89,7 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -113,7 +113,7 @@ $unique ...@@ -113,7 +113,7 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -136,7 +136,7 @@ $unique ...@@ -136,7 +136,7 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -162,7 +162,7 @@ $unique ...@@ -162,7 +162,7 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -185,7 +185,7 @@ $unique ...@@ -185,7 +185,7 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -208,6 +208,6 @@ $unique ...@@ -208,6 +208,6 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -20,241 +20,241 @@ ...@@ -20,241 +20,241 @@
let $sqlfunc = greatest(col1,15); let $sqlfunc = greatest(col1,15);
let $valsqlfunc = greatest(1,15); let $valsqlfunc = greatest(1,15);
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = isnull(col1); let $sqlfunc = isnull(col1);
let $valsqlfunc = isnull(15); let $valsqlfunc = isnull(15);
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = least(col1,15); let $sqlfunc = least(col1,15);
let $valsqlfunc = least(15,30); let $valsqlfunc = least(15,30);
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = case when col1>15 then 20 else 10 end; let $sqlfunc = case when col1>15 then 20 else 10 end;
let $valsqlfunc = case when 1>30 then 20 else 15 end; let $valsqlfunc = case when 1>30 then 20 else 15 end;
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = ifnull(col1,30); let $sqlfunc = ifnull(col1,30);
let $valsqlfunc = ifnull(1,30); let $valsqlfunc = ifnull(1,30);
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = nullif(col1,30); let $sqlfunc = nullif(col1,30);
let $valsqlfunc = nullif(1,30); let $valsqlfunc = nullif(1,30);
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = bit_length(col1); let $sqlfunc = bit_length(col1);
let $valsqlfunc = bit_length(255); let $valsqlfunc = bit_length(255);
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $coltype = char(30); let $coltype = char(30);
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = char_length(col1); let $sqlfunc = char_length(col1);
let $valsqlfunc = char_length('a'); let $valsqlfunc = char_length('a');
#let $coltype = int; #let $coltype = int;
#--source suite/partitions/include/partition_blocked_sql_funcs.inc #--source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $coltype = char(30); let $coltype = char(30);
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = character_length(col1); let $sqlfunc = character_length(col1);
let $valsqlfunc = character_length('a'); let $valsqlfunc = character_length('a');
let $coltype = char(30) let $coltype = char(30)
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = find_in_set(col1,'1,2,3,4,5,6,7,8,9'); let $sqlfunc = find_in_set(col1,'1,2,3,4,5,6,7,8,9');
let $valsqlfunc = find_in_set('i','a,b,c,d,e,f,g,h,i'); let $valsqlfunc = find_in_set('i','a,b,c,d,e,f,g,h,i');
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $coltype = char(30); let $coltype = char(30);
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = instr(col1,'acb'); let $sqlfunc = instr(col1,'acb');
let $valsqlfunc = instr('i','a,b,c,d,e,f,g,h,i'); let $valsqlfunc = instr('i','a,b,c,d,e,f,g,h,i');
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $coltype = char(30); let $coltype = char(30);
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = length(col1); let $sqlfunc = length(col1);
let $valsqlfunc = length('a,b,c,d,e,f,g,h,i'); let $valsqlfunc = length('a,b,c,d,e,f,g,h,i');
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = locate('a',col1); let $sqlfunc = locate('a',col1);
let $valsqlfunc = locate('i','a,b,c,d,e,f,g,h,i'); let $valsqlfunc = locate('i','a,b,c,d,e,f,g,h,i');
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $coltype = char(30); let $coltype = char(30);
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = octet_length(col1); let $sqlfunc = octet_length(col1);
let $valsqlfunc = octet_length('a,b,c,d,e,f,g,h,i'); let $valsqlfunc = octet_length('a,b,c,d,e,f,g,h,i');
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = position('a' in col1); let $sqlfunc = position('a' in col1);
let $valsqlfunc = position('i' in 'a,b,c,d,e,f,g,h,i'); let $valsqlfunc = position('i' in 'a,b,c,d,e,f,g,h,i');
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $coltype = char(30); let $coltype = char(30);
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = strcmp(col1,'acb'); let $sqlfunc = strcmp(col1,'acb');
let $valsqlfunc = strcmp('i','a,b,c,d,e,f,g,h,i'); let $valsqlfunc = strcmp('i','a,b,c,d,e,f,g,h,i');
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $coltype = char(30); let $coltype = char(30);
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = crc32(col1); let $sqlfunc = crc32(col1);
let $valsqlfunc = crc32('a,b,c,d,e,f,g,h,i'); let $valsqlfunc = crc32('a,b,c,d,e,f,g,h,i');
let $coltype = char(30); let $coltype = char(30);
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = round(col1); let $sqlfunc = round(col1);
let $valsqlfunc = round(15); let $valsqlfunc = round(15);
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = sign(col1); let $sqlfunc = sign(col1);
let $valsqlfunc = sign(123); let $valsqlfunc = sign(123);
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = datediff(col1,col1); let $sqlfunc = datediff(col1,col1);
let $valsqlfunc = datediff('1997-11-30 23:59:59','1997-12-31'); let $valsqlfunc = datediff('1997-11-30 23:59:59','1997-12-31');
let $coltype = datetime; let $coltype = datetime;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = period_add(col1,5); let $sqlfunc = period_add(col1,5);
let $valsqlfunc = period_add(9804,5); let $valsqlfunc = period_add(9804,5);
let $coltype = datetime; let $coltype = datetime;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = period_diff(col1,col2); let $sqlfunc = period_diff(col1,col2);
let $valsqlfunc = period_diff(9809,199907); let $valsqlfunc = period_diff(9809,199907);
let $coltype = datetime,col2 datetime; let $coltype = datetime,col2 datetime;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $coltype = int,col2 int; let $coltype = int,col2 int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = timestampdiff(day,5,col1); let $sqlfunc = timestampdiff(day,5,col1);
let $valsqlfunc = timestampdiff(YEAR,'2002-05-01','2001-01-01'); let $valsqlfunc = timestampdiff(YEAR,'2002-05-01','2001-01-01');
let $coltype = datetime; let $coltype = datetime;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = unix_timestamp(col1); let $sqlfunc = unix_timestamp(col1);
let $valsqlfunc = unix_timestamp ('2002-05-01'); let $valsqlfunc = unix_timestamp ('2002-05-01');
let $coltype = date; let $coltype = date;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = week(col1); let $sqlfunc = week(col1);
let $valsqlfunc = week('2002-05-01'); let $valsqlfunc = week('2002-05-01');
let $coltype = datetime; let $coltype = datetime;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = cast(col1 as signed); let $sqlfunc = cast(col1 as signed);
let $valsqlfunc = cast(123 as signed); let $valsqlfunc = cast(123 as signed);
let $coltype = varchar(30); let $coltype = varchar(30);
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = convert(col1,unsigned); let $sqlfunc = convert(col1,unsigned);
let $valsqlfunc = convert(123,unsigned); let $valsqlfunc = convert(123,unsigned);
let $coltype = varchar(30); let $coltype = varchar(30);
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = col1 | 20; let $sqlfunc = col1 | 20;
let $valsqlfunc = 10 | 20; let $valsqlfunc = 10 | 20;
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = col1 & 20; let $sqlfunc = col1 & 20;
let $valsqlfunc = 10 & 20; let $valsqlfunc = 10 & 20;
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = col1 ^ 20; let $sqlfunc = col1 ^ 20;
let $valsqlfunc = 10 ^ 20; let $valsqlfunc = 10 ^ 20;
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = col1 << 20; let $sqlfunc = col1 << 20;
let $valsqlfunc = 10 << 20; let $valsqlfunc = 10 << 20;
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = col1 >> 20; let $sqlfunc = col1 >> 20;
let $valsqlfunc = 10 >> 20; let $valsqlfunc = 10 >> 20;
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = ~col1; let $sqlfunc = ~col1;
let $valsqlfunc = ~20; let $valsqlfunc = ~20;
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = bit_count(col1); let $sqlfunc = bit_count(col1);
let $valsqlfunc = bit_count(20); let $valsqlfunc = bit_count(20);
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
let $sqlfunc = inet_aton(col1); let $sqlfunc = inet_aton(col1);
let $valsqlfunc = inet_aton('192.168.1.1'); let $valsqlfunc = inet_aton('192.168.1.1');
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
set @var =20; set @var =20;
let $sqlfunc = bit_length(col1)+@var-@var; let $sqlfunc = bit_length(col1)+@var-@var;
let $valsqlfunc = bit_length(20)+@var-@var; let $valsqlfunc = bit_length(20)+@var-@var;
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
...@@ -285,6 +285,6 @@ delimiter ;// ...@@ -285,6 +285,6 @@ delimiter ;//
let $sqlfunc = getmaxsigned_t1(col1); let $sqlfunc = getmaxsigned_t1(col1);
let $valsqlfunc = getmaxsigned(10); let $valsqlfunc = getmaxsigned(10);
let $coltype = int; let $coltype = int;
--source suite/partitions/include/partition_blocked_sql_funcs.inc --source suite/parts/inc/partition_blocked_sql_funcs.inc
# --source include/partition_blocked_sql_funcs.inc # --source include/partition_blocked_sql_funcs.inc
drop function if exists getmaxsigned_t1; drop function if exists getmaxsigned_t1;
################################################################################ ################################################################################
# t/partition_supported_sql_funcs_delete.inc # # # # t/part_supported_sql_funcs_delete.inc # # #
# Purpose: # # Purpose: #
# Delete access of the tests frame for allowed sql functions # # Delete access of the tests frame for allowed sql functions #
# # # #
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
# The test frame includes CREATE/ALTER TABLE and some access statements. # # The test frame includes CREATE/ALTER TABLE and some access statements. #
# Column types are int, float(7,4), char(1), date and time depending on the # # Column types are int, float(7,4), char(1), date and time depending on the #
# SQL function. The test frame uses the include file # # SQL function. The test frame uses the include file #
# "partition_supported_sql_funcs_delete.inc" testing the deletion of # # "part_supported_sql_funcs_delete.inc" testing the deletion of #
# partitions. # # partitions. #
# The CREATE and ALTER TABLE statement do not cover the complete partitions # # The CREATE and ALTER TABLE statement do not cover the complete partitions #
# functions, but will ashure that the SQL functions are basically working. # # functions, but will ashure that the SQL functions are basically working. #
...@@ -32,147 +32,147 @@ ...@@ -32,147 +32,147 @@
let $sqlfunc = abs(col1); let $sqlfunc = abs(col1);
let $valsqlfunc = abs(15); let $valsqlfunc = abs(15);
let $coltype = int; let $coltype = int;
let $infile = partition_supported_sql_funcs_int_int.in; let $infile = part_supported_sql_funcs_int_int.inc;
let $val1 = 5 ; let $val1 = 5 ;
let $val2 = 13 ; let $val2 = 13 ;
let $val3 = 17 ; let $val3 = 17 ;
let $val4 = 15 ; let $val4 = 15 ;
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = ascii(col1); let $sqlfunc = ascii(col1);
let $valsqlfunc = ascii('5'); let $valsqlfunc = ascii('5');
let $coltype = char(1); let $coltype = char(1);
let $infile = partition_supported_sql_funcs_int_ch1.in; let $infile = part_supported_sql_funcs_int_ch1.inc;
let $val1 = '1'; let $val1 = '1';
let $val2 = '9'; let $val2 = '9';
let $val3 = '3'; let $val3 = '3';
let $val4 = '8'; let $val4 = '8';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = cast(ceiling(col1) as signed integer); let $sqlfunc = cast(ceiling(col1) as signed integer);
let $valsqlfunc = cast(ceiling(15) as signed integer); let $valsqlfunc = cast(ceiling(15) as signed integer);
let $coltype = float(7,4); let $coltype = float(7,4);
let $infile = partition_supported_sql_funcs_int_float.in; let $infile = part_supported_sql_funcs_int_float.inc;
let $val1 = 5.1230; let $val1 = 5.1230;
let $val2 = 13.345; let $val2 = 13.345;
let $val3 = 17.987; let $val3 = 17.987;
let $val4 = 15.654 ; let $val4 = 15.654 ;
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = cast(floor(col1) as signed); let $sqlfunc = cast(floor(col1) as signed);
let $valsqlfunc = cast(floor(15.123) as signed); let $valsqlfunc = cast(floor(15.123) as signed);
let $coltype = float(7,4); let $coltype = float(7,4);
let $infile = partition_supported_sql_funcs_int_float.in; let $infile = part_supported_sql_funcs_int_float.inc;
let $val1 = 5.1230; let $val1 = 5.1230;
let $val2 = 13.345; let $val2 = 13.345;
let $val3 = 17.987; let $val3 = 17.987;
let $val4 = 15.654 ; let $val4 = 15.654 ;
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = cast(mod(col1,10) as signed); let $sqlfunc = cast(mod(col1,10) as signed);
let $valsqlfunc = cast(mod(15,10) as signed); let $valsqlfunc = cast(mod(15,10) as signed);
let $coltype = float(7,4); let $coltype = float(7,4);
let $infile = partition_supported_sql_funcs_int_float.in; let $infile = part_supported_sql_funcs_int_float.inc;
let $val1 = 5.0000; let $val1 = 5.0000;
let $val2 = 19; let $val2 = 19;
let $val3 = 17; let $val3 = 17;
let $val4 = 15 ; let $val4 = 15 ;
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = ord(col1); let $sqlfunc = ord(col1);
let $valsqlfunc = ord('a'); let $valsqlfunc = ord('a');
let $coltype = char(3); let $coltype = char(3);
let $infile = partition_supported_sql_funcs_int_ch1.in; let $infile = part_supported_sql_funcs_int_ch1.inc;
let $val1 = '1'; let $val1 = '1';
let $val2 = '9'; let $val2 = '9';
let $val3 = '3'; let $val3 = '3';
let $val4 = '8'; let $val4 = '8';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = day(col1); let $sqlfunc = day(col1);
let $valsqlfunc = day('2006-12-21'); let $valsqlfunc = day('2006-12-21');
let $coltype = date; let $coltype = date;
let $infile = partition_supported_sql_funcs_int_date.in; let $infile = part_supported_sql_funcs_int_date.inc;
let $val1 = '2006-02-03'; let $val1 = '2006-02-03';
let $val2 = '2006-01-17'; let $val2 = '2006-01-17';
let $val3 = '2006-01-25'; let $val3 = '2006-01-25';
let $val4 = '2006-02-05'; let $val4 = '2006-02-05';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = dayofmonth(col1); let $sqlfunc = dayofmonth(col1);
let $valsqlfunc = dayofmonth('2006-12-24'); let $valsqlfunc = dayofmonth('2006-12-24');
let $coltype = date; let $coltype = date;
let $infile = partition_supported_sql_funcs_int_date.in; let $infile = part_supported_sql_funcs_int_date.inc;
let $val1 = '2006-02-03'; let $val1 = '2006-02-03';
let $val2 = '2006-01-17'; let $val2 = '2006-01-17';
let $val3 = '2006-01-25'; let $val3 = '2006-01-25';
let $val4 = '2006-02-05'; let $val4 = '2006-02-05';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = dayofweek(col1); let $sqlfunc = dayofweek(col1);
let $valsqlfunc = dayofweek('2006-12-24'); let $valsqlfunc = dayofweek('2006-12-24');
let $coltype = date; let $coltype = date;
let $infile = partition_supported_sql_funcs_int_date.in; let $infile = part_supported_sql_funcs_int_date.inc;
let $val1 = '2006-01-03'; let $val1 = '2006-01-03';
let $val2 = '2006-02-17'; let $val2 = '2006-02-17';
let $val3 = '2006-01-25'; let $val3 = '2006-01-25';
let $val4 = '2006-02-05'; let $val4 = '2006-02-05';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = dayofyear(col1); let $sqlfunc = dayofyear(col1);
let $valsqlfunc = dayofyear('2006-12-25'); let $valsqlfunc = dayofyear('2006-12-25');
let $coltype = date; let $coltype = date;
let $infile = partition_supported_sql_funcs_int_date.in; let $infile = part_supported_sql_funcs_int_date.inc;
let $val1 = '2006-01-03'; let $val1 = '2006-01-03';
let $val2 = '2006-01-17'; let $val2 = '2006-01-17';
let $val3 = '2006-02-25'; let $val3 = '2006-02-25';
let $val4 = '2006-02-05'; let $val4 = '2006-02-05';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $coltype = char(30); let $coltype = char(30);
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = extract(month from col1); let $sqlfunc = extract(month from col1);
let $valsqlfunc = extract(year from '1998-11-23'); let $valsqlfunc = extract(year from '1998-11-23');
let $coltype = date; let $coltype = date;
let $infile = partition_supported_sql_funcs_int_date.in; let $infile = part_supported_sql_funcs_int_date.inc;
let $val1 = '2006-01-03'; let $val1 = '2006-01-03';
let $val2 = '2006-02-17'; let $val2 = '2006-02-17';
let $val3 = '2006-01-25'; let $val3 = '2006-01-25';
let $val4 = '2006-02-05'; let $val4 = '2006-02-05';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = hour(col1); let $sqlfunc = hour(col1);
let $valsqlfunc = hour('18:30'); let $valsqlfunc = hour('18:30');
let $coltype = time; let $coltype = time;
let $infile = partition_supported_sql_funcs_int_time.in; let $infile = part_supported_sql_funcs_int_time.inc;
let $val1 = '09:09'; let $val1 = '09:09';
let $val2 = '14:30'; let $val2 = '14:30';
let $val3 = '21:59'; let $val3 = '21:59';
let $val4 = '10:30'; let $val4 = '10:30';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = microsecond(col1); let $sqlfunc = microsecond(col1);
let $valsqlfunc = microsecond('10:30:10.000010'); let $valsqlfunc = microsecond('10:30:10.000010');
let $coltype = time; let $coltype = time;
let $infile = partition_supported_sql_funcs_int_time.in; let $infile = part_supported_sql_funcs_int_time.inc;
let $val1 = '09:09:15.000002'; let $val1 = '09:09:15.000002';
let $val2 = '04:30:01.000018'; let $val2 = '04:30:01.000018';
let $val3 = '00:59:22.000024'; let $val3 = '00:59:22.000024';
let $val4 = '05:30:34.000037'; let $val4 = '05:30:34.000037';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = minute(col1); let $sqlfunc = minute(col1);
...@@ -182,107 +182,107 @@ let $val1 = '09:09:15'; ...@@ -182,107 +182,107 @@ let $val1 = '09:09:15';
let $val2 = '14:30:45'; let $val2 = '14:30:45';
let $val3 = '21:59:22'; let $val3 = '21:59:22';
let $val4 = '10:24:23'; let $val4 = '10:24:23';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = second(col1); let $sqlfunc = second(col1);
let $valsqlfunc = second('18:30:14'); let $valsqlfunc = second('18:30:14');
let $coltype = time; let $coltype = time;
let $infile = partition_supported_sql_funcs_int_time.in; let $infile = part_supported_sql_funcs_int_time.inc;
let $val1 = '09:09:09'; let $val1 = '09:09:09';
let $val2 = '14:30:20'; let $val2 = '14:30:20';
let $val3 = '21:59:22'; let $val3 = '21:59:22';
let $val4 = '10:22:33'; let $val4 = '10:22:33';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $coltype = char(30); let $coltype = char(30);
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = month(col1); let $sqlfunc = month(col1);
let $valsqlfunc = month('2006-10-14'); let $valsqlfunc = month('2006-10-14');
let $coltype = date; let $coltype = date;
let $infile = partition_supported_sql_funcs_int_date.in; let $infile = part_supported_sql_funcs_int_date.inc;
let $val1 = '2006-01-03'; let $val1 = '2006-01-03';
let $val2 = '2006-12-17'; let $val2 = '2006-12-17';
let $val3 = '2006-05-25'; let $val3 = '2006-05-25';
let $val4 = '2006-11-06'; let $val4 = '2006-11-06';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = quarter(col1); let $sqlfunc = quarter(col1);
let $valsqlfunc = quarter('2006-10-14'); let $valsqlfunc = quarter('2006-10-14');
let $coltype = date; let $coltype = date;
let $infile = partition_supported_sql_funcs_int_date.in; let $infile = part_supported_sql_funcs_int_date.inc;
let $val1 = '2006-01-03'; let $val1 = '2006-01-03';
let $val2 = '2006-12-17'; let $val2 = '2006-12-17';
let $val3 = '2006-09-25'; let $val3 = '2006-09-25';
let $val4 = '2006-07-30'; let $val4 = '2006-07-30';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = time_to_sec(col1)-(time_to_sec(col1)-20); let $sqlfunc = time_to_sec(col1)-(time_to_sec(col1)-20);
let $valsqlfunc = time_to_sec('18:30:14')-(time_to_sec('17:59:59')); let $valsqlfunc = time_to_sec('18:30:14')-(time_to_sec('17:59:59'));
let $coltype = time; let $coltype = time;
let $infile = partition_supported_sql_funcs_int_time.in; let $infile = part_supported_sql_funcs_int_time.inc;
let $val1 = '09:09:15'; let $val1 = '09:09:15';
let $val2 = '14:30:45'; let $val2 = '14:30:45';
let $val3 = '21:59:22'; let $val3 = '21:59:22';
let $val4 = '10:33:11'; let $val4 = '10:33:11';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = to_days(col1)-to_days('2006-01-01'); let $sqlfunc = to_days(col1)-to_days('2006-01-01');
let $valsqlfunc = to_days('2006-02-02')-to_days('2006-01-01'); let $valsqlfunc = to_days('2006-02-02')-to_days('2006-01-01');
let $coltype = date; let $coltype = date;
let $infile = partition_supported_sql_funcs_int_date.in; let $infile = part_supported_sql_funcs_int_date.inc;
let $val1 = '2006-02-03'; let $val1 = '2006-02-03';
let $val2 = '2006-01-17'; let $val2 = '2006-01-17';
let $val3 = '2006-01-25'; let $val3 = '2006-01-25';
let $val4 = '2006-02-06'; let $val4 = '2006-02-06';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = weekday(col1); let $sqlfunc = weekday(col1);
let $valsqlfunc = weekday('2006-10-14'); let $valsqlfunc = weekday('2006-10-14');
let $coltype = date; let $coltype = date;
let $infile = partition_supported_sql_funcs_int_date.in; let $infile = part_supported_sql_funcs_int_date.inc;
let $val1 = '2006-12-03'; let $val1 = '2006-12-03';
let $val2 = '2006-11-17'; let $val2 = '2006-11-17';
let $val3 = '2006-05-25'; let $val3 = '2006-05-25';
let $val4 = '2006-02-06'; let $val4 = '2006-02-06';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = weekofyear(col1); let $sqlfunc = weekofyear(col1);
let $valsqlfunc = weekofyear('2006-02-14'); let $valsqlfunc = weekofyear('2006-02-14');
let $coltype = date; let $coltype = date;
let $infile = partition_supported_sql_funcs_int_date.in; let $infile = part_supported_sql_funcs_int_date.inc;
let $val1 = '2006-01-03'; let $val1 = '2006-01-03';
let $val2 = '2006-03-17'; let $val2 = '2006-03-17';
let $val3 = '2006-05-25'; let $val3 = '2006-05-25';
let $val4 = '2006-09-06'; let $val4 = '2006-09-06';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = year(col1)-1990; let $sqlfunc = year(col1)-1990;
let $valsqlfunc = year('2005-10-14')-1990; let $valsqlfunc = year('2005-10-14')-1990;
let $coltype = date; let $coltype = date;
let $infile = partition_supported_sql_funcs_int_date.in; let $infile = part_supported_sql_funcs_int_date.inc;
let $val1 = '1996-01-03'; let $val1 = '1996-01-03';
let $val2 = '2000-02-17'; let $val2 = '2000-02-17';
let $val3 = '2004-05-25'; let $val3 = '2004-05-25';
let $val4 = '2002-02-15'; let $val4 = '2002-02-15';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
let $sqlfunc = yearweek(col1)-200600; let $sqlfunc = yearweek(col1)-200600;
let $valsqlfunc = yearweek('2006-10-14')-200600; let $valsqlfunc = yearweek('2006-10-14')-200600;
let $coltype = date; let $coltype = date;
let $infile = partition_supported_sql_funcs_int_date.in; let $infile = part_supported_sql_funcs_int_date.inc;
let $val1 = '2006-01-03'; let $val1 = '2006-01-03';
let $val2 = '2006-08-17'; let $val2 = '2006-08-17';
let $val3 = '2006-03-25'; let $val3 = '2006-03-25';
let $val4 = '2006-11-15'; let $val4 = '2006-11-15';
--source suite/partitions/include/partition_supported_sql_funcs.inc --source suite/parts/inc/partition_supported_sql_funcs.inc
# --source include/partition_supported_sql_funcs.inc # --source include/partition_supported_sql_funcs.inc
...@@ -34,12 +34,12 @@ if ($do_pk_tests) ...@@ -34,12 +34,12 @@ if ($do_pk_tests)
{ {
--echo # 1.1.1 PRIMARY KEY consisting of one column --echo # 1.1.1 PRIMARY KEY consisting of one column
let $alter= ALTER TABLE t1 ADD PRIMARY KEY(f_int1); let $alter= ALTER TABLE t1 ADD PRIMARY KEY(f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
# This must fail, because PRIMARY KEY does not contain f_int1 # This must fail, because PRIMARY KEY does not contain f_int1
let $alter= ALTER TABLE t1 ADD PRIMARY KEY(f_int2); let $alter= ALTER TABLE t1 ADD PRIMARY KEY(f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
# The value of the following test is maybe covered by 1.1.4. # The value of the following test is maybe covered by 1.1.4.
...@@ -47,29 +47,29 @@ if ($more_pk_ui_tests) ...@@ -47,29 +47,29 @@ if ($more_pk_ui_tests)
{ {
--echo # 1.1.2 UNIQUE INDEX consisting of one column --echo # 1.1.2 UNIQUE INDEX consisting of one column
let $alter= ALTER TABLE t1 ADD UNIQUE INDEX uidx1 (f_int1); let $alter= ALTER TABLE t1 ADD UNIQUE INDEX uidx1 (f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
# This must fail, because UNIQUE INDEX does not contain f_int1 # This must fail, because UNIQUE INDEX does not contain f_int1
let $alter= ALTER TABLE t1 ADD UNIQUE INDEX uidx1 (f_int2); let $alter= ALTER TABLE t1 ADD UNIQUE INDEX uidx1 (f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
if ($do_pk_tests) if ($do_pk_tests)
{ {
--echo # 1.1.3 PRIMARY KEY consisting of two columns --echo # 1.1.3 PRIMARY KEY consisting of two columns
let $alter= ALTER TABLE t1 ADD PRIMARY KEY(f_int1,f_int2); let $alter= ALTER TABLE t1 ADD PRIMARY KEY(f_int1,f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
let $alter= ALTER TABLE t1 ADD PRIMARY KEY(f_int2,f_int1); let $alter= ALTER TABLE t1 ADD PRIMARY KEY(f_int2,f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
--echo # 1.1.4 UNIQUE INDEX consisting of two columns --echo # 1.1.4 UNIQUE INDEX consisting of two columns
let $alter= ALTER TABLE t1 ADD UNIQUE INDEX uidx1 (f_int1,f_int2); let $alter= ALTER TABLE t1 ADD UNIQUE INDEX uidx1 (f_int1,f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
let $alter= ALTER TABLE t1 ADD UNIQUE INDEX uidx1 (f_int2,f_int1); let $alter= ALTER TABLE t1 ADD UNIQUE INDEX uidx1 (f_int2,f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
# #
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
...@@ -82,30 +82,30 @@ if ($do_pk_tests) ...@@ -82,30 +82,30 @@ if ($do_pk_tests)
{ {
--echo # 1.2.1 PRIMARY KEY consisting of two columns --echo # 1.2.1 PRIMARY KEY consisting of two columns
let $alter= ALTER TABLE t1 ADD PRIMARY KEY(f_int1,f_int2); let $alter= ALTER TABLE t1 ADD PRIMARY KEY(f_int1,f_int2);
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
let $alter= ALTER TABLE t1 ADD PRIMARY KEY(f_int2,f_int1); let $alter= ALTER TABLE t1 ADD PRIMARY KEY(f_int2,f_int1);
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
} }
--echo # 1.2.2 UNIQUE INDEX consisting of two columns --echo # 1.2.2 UNIQUE INDEX consisting of two columns
let $alter= ALTER TABLE t1 ADD UNIQUE INDEX uidx1 (f_int1,f_int2); let $alter= ALTER TABLE t1 ADD UNIQUE INDEX uidx1 (f_int1,f_int2);
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
let $alter= ALTER TABLE t1 ADD UNIQUE INDEX uidx1 (f_int2,f_int1); let $alter= ALTER TABLE t1 ADD UNIQUE INDEX uidx1 (f_int2,f_int1);
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
if ($do_pk_tests) if ($do_pk_tests)
{ {
--echo # 1.2.3 PRIMARY KEY and UNIQUE INDEX consisting of two columns --echo # 1.2.3 PRIMARY KEY and UNIQUE INDEX consisting of two columns
let $alter= ALTER TABLE t1 ADD UNIQUE INDEX uidx1 (f_int1,f_int2), ADD PRIMARY KEY(f_int2,f_int1); let $alter= ALTER TABLE t1 ADD UNIQUE INDEX uidx1 (f_int1,f_int2), ADD PRIMARY KEY(f_int2,f_int1);
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
let $alter= ALTER TABLE t1 ADD UNIQUE INDEX uidx1 (f_int2,f_int1), ADD PRIMARY KEY(f_int1,f_int2); let $alter= ALTER TABLE t1 ADD UNIQUE INDEX uidx1 (f_int2,f_int1), ADD PRIMARY KEY(f_int1,f_int2);
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
let $unique= ; let $unique= ;
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
} }
# #
...@@ -131,14 +131,14 @@ if ($more_pk_ui_tests) ...@@ -131,14 +131,14 @@ if ($more_pk_ui_tests)
--echo # 2.1.1 DROP PRIMARY KEY consisting of one column --echo # 2.1.1 DROP PRIMARY KEY consisting of one column
let $unique= , PRIMARY KEY(f_int1); let $unique= , PRIMARY KEY(f_int1);
let $alter= ALTER TABLE t1 DROP PRIMARY KEY; let $alter= ALTER TABLE t1 DROP PRIMARY KEY;
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
# #
--echo # 2.1.2 DROP UNIQUE INDEX consisting of one column --echo # 2.1.2 DROP UNIQUE INDEX consisting of one column
let $unique= , UNIQUE INDEX uidx1 (f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int1);
let $alter= ALTER TABLE t1 DROP INDEX uidx1; let $alter= ALTER TABLE t1 DROP INDEX uidx1;
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
# #
if ($do_pk_tests) if ($do_pk_tests)
...@@ -146,20 +146,20 @@ if ($more_pk_ui_tests) ...@@ -146,20 +146,20 @@ if ($more_pk_ui_tests)
--echo # 2.1.3 DROP PRIMARY KEY consisting of two columns --echo # 2.1.3 DROP PRIMARY KEY consisting of two columns
let $alter= ALTER TABLE t1 DROP PRIMARY KEY; let $alter= ALTER TABLE t1 DROP PRIMARY KEY;
let $unique= , PRIMARY KEY(f_int1,f_int2); let $unique= , PRIMARY KEY(f_int1,f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
let $unique= , PRIMARY KEY(f_int2,f_int1); let $unique= , PRIMARY KEY(f_int2,f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
# #
--echo # 2.1.4 DROP UNIQUE INDEX consisting of two columns --echo # 2.1.4 DROP UNIQUE INDEX consisting of two columns
let $alter= ALTER TABLE t1 DROP INDEX uidx1; let $alter= ALTER TABLE t1 DROP INDEX uidx1;
let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2); let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
# #
...@@ -168,16 +168,16 @@ if ($do_pk_tests) ...@@ -168,16 +168,16 @@ if ($do_pk_tests)
--echo # 2.1.5 DROP PRIMARY KEY + UNIQUE INDEX consisting of two columns --echo # 2.1.5 DROP PRIMARY KEY + UNIQUE INDEX consisting of two columns
let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2), PRIMARY KEY(f_int2,f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2), PRIMARY KEY(f_int2,f_int1);
let $alter= ALTER TABLE t1 DROP PRIMARY KEY, DROP INDEX uidx1; let $alter= ALTER TABLE t1 DROP PRIMARY KEY, DROP INDEX uidx1;
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1), PRIMARY KEY(f_int1,f_int2); let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1), PRIMARY KEY(f_int1,f_int2);
let $alter= ALTER TABLE t1 DROP PRIMARY KEY, DROP INDEX uidx1; let $alter= ALTER TABLE t1 DROP PRIMARY KEY, DROP INDEX uidx1;
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2), UNIQUE INDEX uidx2 (f_int2,f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2), UNIQUE INDEX uidx2 (f_int2,f_int1);
let $alter= ALTER TABLE t1 DROP INDEX uidx1, DROP INDEX uidx2; let $alter= ALTER TABLE t1 DROP INDEX uidx1, DROP INDEX uidx2;
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
# #
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
...@@ -190,20 +190,20 @@ if ($do_pk_tests) ...@@ -190,20 +190,20 @@ if ($do_pk_tests)
--echo # 2.2.1 DROP PRIMARY KEY consisting of two columns --echo # 2.2.1 DROP PRIMARY KEY consisting of two columns
let $alter= ALTER TABLE t1 DROP PRIMARY KEY; let $alter= ALTER TABLE t1 DROP PRIMARY KEY;
let $unique= , PRIMARY KEY(f_int1,f_int2); let $unique= , PRIMARY KEY(f_int1,f_int2);
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
let $unique= , PRIMARY KEY(f_int2,f_int1); let $unique= , PRIMARY KEY(f_int2,f_int1);
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
} }
# #
--echo # 2.2.2 DROP UNIQUE INDEX consisting of two columns --echo # 2.2.2 DROP UNIQUE INDEX consisting of two columns
let $alter= ALTER TABLE t1 DROP INDEX uidx1; let $alter= ALTER TABLE t1 DROP INDEX uidx1;
let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2); let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2);
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1);
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
# #
if ($do_pk_tests) if ($do_pk_tests)
...@@ -211,16 +211,16 @@ if ($do_pk_tests) ...@@ -211,16 +211,16 @@ if ($do_pk_tests)
--echo # 2.2.3 DROP PRIMARY KEY + UNIQUE INDEX consisting of two columns --echo # 2.2.3 DROP PRIMARY KEY + UNIQUE INDEX consisting of two columns
let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2), PRIMARY KEY(f_int2,f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2), PRIMARY KEY(f_int2,f_int1);
let $alter= ALTER TABLE t1 DROP PRIMARY KEY, DROP INDEX uidx1; let $alter= ALTER TABLE t1 DROP PRIMARY KEY, DROP INDEX uidx1;
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1), PRIMARY KEY(f_int1,f_int2); let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1), PRIMARY KEY(f_int1,f_int2);
let $alter= ALTER TABLE t1 DROP PRIMARY KEY, DROP INDEX uidx1; let $alter= ALTER TABLE t1 DROP PRIMARY KEY, DROP INDEX uidx1;
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
} }
let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2), UNIQUE INDEX uidx2 (f_int2,f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2), UNIQUE INDEX uidx2 (f_int2,f_int1);
let $alter= ALTER TABLE t1 DROP INDEX uidx1, DROP INDEX uidx2; let $alter= ALTER TABLE t1 DROP INDEX uidx1, DROP INDEX uidx2;
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
if (0) if (0)
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
let $alter= ALTER TABLE t1 MODIFY f_int2 BIGINT; let $alter= ALTER TABLE t1 MODIFY f_int2 BIGINT;
--echo # 1.1.1 no PRIMARY KEY or UNIQUE INDEX exists --echo # 1.1.1 no PRIMARY KEY or UNIQUE INDEX exists
let $unique= ; let $unique= ;
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
# #
if ($do_pk_tests) if ($do_pk_tests)
...@@ -37,14 +37,14 @@ if ($do_pk_tests) ...@@ -37,14 +37,14 @@ if ($do_pk_tests)
if ($more_pk_ui_tests) if ($more_pk_ui_tests)
{ {
let $unique= , PRIMARY KEY (f_int1); let $unique= , PRIMARY KEY (f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
let $unique= , PRIMARY KEY (f_int1,f_int2); let $unique= , PRIMARY KEY (f_int1,f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
let $unique= , PRIMARY KEY (f_int2,f_int1); let $unique= , PRIMARY KEY (f_int2,f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
# #
...@@ -54,14 +54,14 @@ if ($do_pk_tests) ...@@ -54,14 +54,14 @@ if ($do_pk_tests)
if ($more_pk_ui_tests) if ($more_pk_ui_tests)
{ {
let $unique= , UNIQUE INDEX uidx1 (f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2); let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
# #
if ($more_pk_ui_tests) if ($more_pk_ui_tests)
...@@ -75,42 +75,42 @@ if ($more_pk_ui_tests) ...@@ -75,42 +75,42 @@ if ($more_pk_ui_tests)
let $alter= ALTER TABLE t1 MODIFY f_int1 BIGINT; let $alter= ALTER TABLE t1 MODIFY f_int1 BIGINT;
--echo # 1.2.1 no PRIMARY KEY or UNIQUE INDEX exists --echo # 1.2.1 no PRIMARY KEY or UNIQUE INDEX exists
let $unique= ; let $unique= ;
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
# #
if ($do_pk_tests) if ($do_pk_tests)
{ {
--echo # 1.2.2 PRIMARY KEY exists --echo # 1.2.2 PRIMARY KEY exists
let $unique= , PRIMARY KEY (f_int1); let $unique= , PRIMARY KEY (f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
let $unique= , PRIMARY KEY (f_int1,f_int2); let $unique= , PRIMARY KEY (f_int1,f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
let $unique= , PRIMARY KEY (f_int2,f_int1); let $unique= , PRIMARY KEY (f_int2,f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
} }
# #
--echo # 1.2.3 UNIQUE INDEX exists --echo # 1.2.3 UNIQUE INDEX exists
let $unique= , UNIQUE INDEX uidx (f_int1); let $unique= , UNIQUE INDEX uidx (f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
let $unique= , UNIQUE INDEX uidx (f_int1,f_int2); let $unique= , UNIQUE INDEX uidx (f_int1,f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
let $unique= , UNIQUE INDEX uidx (f_int2,f_int1); let $unique= , UNIQUE INDEX uidx (f_int2,f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
} }
# #
...@@ -123,9 +123,9 @@ if ($more_pk_ui_tests) ...@@ -123,9 +123,9 @@ if ($more_pk_ui_tests)
let $alter= ALTER TABLE t1 MODIFY f_int1 BIGINT, MODIFY f_int2 BIGINT; let $alter= ALTER TABLE t1 MODIFY f_int1 BIGINT, MODIFY f_int2 BIGINT;
--echo # 1.3.1 no PRIMARY KEY or UNIQUE INDEX exists --echo # 1.3.1 no PRIMARY KEY or UNIQUE INDEX exists
let $unique= ; let $unique= ;
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
# #
if ($do_pk_tests) if ($do_pk_tests)
...@@ -136,18 +136,18 @@ if ($do_pk_tests) ...@@ -136,18 +136,18 @@ if ($do_pk_tests)
if ($more_pk_ui_tests) if ($more_pk_ui_tests)
{ {
let $unique= , PRIMARY KEY (f_int1); let $unique= , PRIMARY KEY (f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
let $unique= , PRIMARY KEY (f_int1,f_int2); let $unique= , PRIMARY KEY (f_int1,f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
let $unique= , PRIMARY KEY (f_int2,f_int1); let $unique= , PRIMARY KEY (f_int2,f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
} }
# #
...@@ -157,18 +157,18 @@ if ($do_pk_tests) ...@@ -157,18 +157,18 @@ if ($do_pk_tests)
if ($more_pk_ui_tests) if ($more_pk_ui_tests)
{ {
let $unique= , UNIQUE INDEX uidx (f_int1); let $unique= , UNIQUE INDEX uidx (f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
let $unique= , UNIQUE INDEX uidx (f_int1,f_int2); let $unique= , UNIQUE INDEX uidx (f_int1,f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
let $unique= , UNIQUE INDEX uidx (f_int2,f_int1); let $unique= , UNIQUE INDEX uidx (f_int2,f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
--echo --echo
...@@ -184,7 +184,7 @@ let $unique= , UNIQUE INDEX uidx (f_int2,f_int1); ...@@ -184,7 +184,7 @@ let $unique= , UNIQUE INDEX uidx (f_int2,f_int1);
let $alter= ALTER TABLE t1 MODIFY f_int2 MEDIUMINT; let $alter= ALTER TABLE t1 MODIFY f_int2 MEDIUMINT;
--echo # 2.1.1 no PRIMARY KEY or UNIQUE INDEX exists --echo # 2.1.1 no PRIMARY KEY or UNIQUE INDEX exists
let $unique= ; let $unique= ;
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
# #
if ($do_pk_tests) if ($do_pk_tests)
...@@ -195,14 +195,14 @@ if ($do_pk_tests) ...@@ -195,14 +195,14 @@ if ($do_pk_tests)
{ {
--echo # 2.1.2 PRIMARY KEY exists --echo # 2.1.2 PRIMARY KEY exists
let $unique= , PRIMARY KEY (f_int1); let $unique= , PRIMARY KEY (f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
let $unique= , PRIMARY KEY (f_int1,f_int2); let $unique= , PRIMARY KEY (f_int1,f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
let $unique= , PRIMARY KEY (f_int2,f_int1); let $unique= , PRIMARY KEY (f_int2,f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
# #
...@@ -212,14 +212,14 @@ if ($do_pk_tests) ...@@ -212,14 +212,14 @@ if ($do_pk_tests)
if ($more_pk_ui_tests) if ($more_pk_ui_tests)
{ {
let $unique= , UNIQUE INDEX uidx1 (f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2); let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
# #
if ($more_pk_ui_tests) if ($more_pk_ui_tests)
...@@ -233,42 +233,42 @@ if ($more_pk_ui_tests) ...@@ -233,42 +233,42 @@ if ($more_pk_ui_tests)
let $alter= ALTER TABLE t1 MODIFY f_int1 MEDIUMINT; let $alter= ALTER TABLE t1 MODIFY f_int1 MEDIUMINT;
--echo # 2.2.1 no PRIMARY KEY or UNIQUE INDEX exists --echo # 2.2.1 no PRIMARY KEY or UNIQUE INDEX exists
let $unique= ; let $unique= ;
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
# #
if ($do_pk_tests) if ($do_pk_tests)
{ {
--echo # 2.2.2 PRIMARY KEY exists --echo # 2.2.2 PRIMARY KEY exists
let $unique= , PRIMARY KEY (f_int1); let $unique= , PRIMARY KEY (f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
let $unique= , PRIMARY KEY (f_int1,f_int2); let $unique= , PRIMARY KEY (f_int1,f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
let $unique= , PRIMARY KEY (f_int2,f_int1); let $unique= , PRIMARY KEY (f_int2,f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
} }
# #
--echo # 2.2.3 UNIQUE INDEX exists --echo # 2.2.3 UNIQUE INDEX exists
let $unique= , UNIQUE INDEX uidx (f_int1); let $unique= , UNIQUE INDEX uidx (f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
let $unique= , UNIQUE INDEX uidx (f_int1,f_int2); let $unique= , UNIQUE INDEX uidx (f_int1,f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
let $unique= , UNIQUE INDEX uidx (f_int2,f_int1); let $unique= , UNIQUE INDEX uidx (f_int2,f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
} }
# #
...@@ -280,9 +280,9 @@ if ($more_pk_ui_tests) ...@@ -280,9 +280,9 @@ if ($more_pk_ui_tests)
let $alter= ALTER TABLE t1 MODIFY f_int1 MEDIUMINT, MODIFY f_int2 MEDIUMINT; let $alter= ALTER TABLE t1 MODIFY f_int1 MEDIUMINT, MODIFY f_int2 MEDIUMINT;
--echo # 2.3.1 no PRIMARY KEY or UNIQUE INDEX exists --echo # 2.3.1 no PRIMARY KEY or UNIQUE INDEX exists
let $unique= ; let $unique= ;
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
# #
if ($do_pk_tests) if ($do_pk_tests)
...@@ -293,18 +293,18 @@ if ($do_pk_tests) ...@@ -293,18 +293,18 @@ if ($do_pk_tests)
if ($more_pk_ui_tests) if ($more_pk_ui_tests)
{ {
let $unique= , PRIMARY KEY (f_int1); let $unique= , PRIMARY KEY (f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
} }
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
let $unique= , PRIMARY KEY (f_int1,f_int2); let $unique= , PRIMARY KEY (f_int1,f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
let $unique= , PRIMARY KEY (f_int2,f_int1); let $unique= , PRIMARY KEY (f_int2,f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
} }
# #
...@@ -314,18 +314,18 @@ if ($do_pk_tests) ...@@ -314,18 +314,18 @@ if ($do_pk_tests)
if ($more_pk_ui_tests) if ($more_pk_ui_tests)
{ {
let $unique= , UNIQUE INDEX uidx (f_int1); let $unique= , UNIQUE INDEX uidx (f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
} }
let $unique= , UNIQUE INDEX uidx (f_int1,f_int2); let $unique= , UNIQUE INDEX uidx (f_int1,f_int2);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
let $unique= , UNIQUE INDEX uidx (f_int2,f_int1); let $unique= , UNIQUE INDEX uidx (f_int2,f_int1);
--source suite/partitions/include/partition_alter_11.inc --source suite/parts/inc/partition_alter_11.inc
# --source include/partition_alter_11.inc # --source include/partition_alter_11.inc
--source suite/partitions/include/partition_alter_13.inc --source suite/parts/inc/partition_alter_13.inc
# --source include/partition_alter_13.inc # --source include/partition_alter_13.inc
# #
......
...@@ -33,7 +33,7 @@ SELECT IF(9999 - 1000 + 1 > @max_row, @max_row , 9999 - 1000 + 1) ...@@ -33,7 +33,7 @@ SELECT IF(9999 - 1000 + 1 > @max_row, @max_row , 9999 - 1000 + 1)
# DEBUG SELECT @exp_row_count; # DEBUG SELECT @exp_row_count;
# 4. Print the layout, check Readability # 4. Print the layout, check Readability
--source include/partition_layout.inc --source include/partition_layout.inc
--source suite/partitions/include/partition_check_read1.inc --source suite/parts/inc/partition_check_read1.inc
# #
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
--echo # 1.1 Increase number of PARTITIONS --echo # 1.1 Increase number of PARTITIONS
...@@ -45,16 +45,16 @@ ALTER TABLE t1 ADD PARTITION (PARTITION part2); ...@@ -45,16 +45,16 @@ ALTER TABLE t1 ADD PARTITION (PARTITION part2);
--echo # 1.1.2 Assign HASH partitioning --echo # 1.1.2 Assign HASH partitioning
ALTER TABLE t1 PARTITION BY HASH(CAST(YEAR(f_date) AS SIGNED INTEGER)); ALTER TABLE t1 PARTITION BY HASH(CAST(YEAR(f_date) AS SIGNED INTEGER));
--source include/partition_layout.inc --source include/partition_layout.inc
--source suite/partitions/include/partition_check_read1.inc --source suite/parts/inc/partition_check_read1.inc
# #
--echo # 1.1.3 Assign other HASH partitioning to already partitioned table --echo # 1.1.3 Assign other HASH partitioning to already partitioned table
--echo # + test and switch back + test --echo # + test and switch back + test
ALTER TABLE t1 PARTITION BY HASH(CAST(f_varchar AS SIGNED INTEGER)); ALTER TABLE t1 PARTITION BY HASH(CAST(f_varchar AS SIGNED INTEGER));
--source include/partition_layout.inc --source include/partition_layout.inc
--source suite/partitions/include/partition_check_read1.inc --source suite/parts/inc/partition_check_read1.inc
ALTER TABLE t1 PARTITION BY HASH(CAST(YEAR(f_date) AS SIGNED INTEGER)); ALTER TABLE t1 PARTITION BY HASH(CAST(YEAR(f_date) AS SIGNED INTEGER));
--source include/partition_layout.inc --source include/partition_layout.inc
--source suite/partitions/include/partition_check_read1.inc --source suite/parts/inc/partition_check_read1.inc
# #
--echo # 1.1.4 Add PARTITIONS not fitting to HASH --> must fail --echo # 1.1.4 Add PARTITIONS not fitting to HASH --> must fail
--error ER_PARTITION_WRONG_VALUES_ERROR --error ER_PARTITION_WRONG_VALUES_ERROR
...@@ -65,7 +65,7 @@ ALTER TABLE t1 ADD PARTITION (PARTITION part2 VALUES LESS THAN (0)); ...@@ -65,7 +65,7 @@ ALTER TABLE t1 ADD PARTITION (PARTITION part2 VALUES LESS THAN (0));
--echo # 1.1.5 Add two named partitions + test --echo # 1.1.5 Add two named partitions + test
ALTER TABLE t1 ADD PARTITION (PARTITION part1, PARTITION part7); ALTER TABLE t1 ADD PARTITION (PARTITION part1, PARTITION part7);
--source include/partition_layout.inc --source include/partition_layout.inc
--source suite/partitions/include/partition_check_read1.inc --source suite/parts/inc/partition_check_read1.inc
# #
--echo # 1.1.6 Add two named partitions, name clash --> must fail --echo # 1.1.6 Add two named partitions, name clash --> must fail
--error ER_SAME_NAME_PARTITION --error ER_SAME_NAME_PARTITION
...@@ -74,12 +74,12 @@ ALTER TABLE t1 ADD PARTITION (PARTITION part1, PARTITION part7); ...@@ -74,12 +74,12 @@ ALTER TABLE t1 ADD PARTITION (PARTITION part1, PARTITION part7);
--echo # 1.1.7 Add one named partition + test --echo # 1.1.7 Add one named partition + test
ALTER TABLE t1 ADD PARTITION (PARTITION part2); ALTER TABLE t1 ADD PARTITION (PARTITION part2);
--source include/partition_layout.inc --source include/partition_layout.inc
--source suite/partitions/include/partition_check_read1.inc --source suite/parts/inc/partition_check_read1.inc
# #
--echo # 1.1.8 Add four not named partitions + test --echo # 1.1.8 Add four not named partitions + test
ALTER TABLE t1 ADD PARTITION PARTITIONS 4; ALTER TABLE t1 ADD PARTITION PARTITIONS 4;
--source include/partition_layout.inc --source include/partition_layout.inc
--source suite/partitions/include/partition_check_read1.inc --source suite/parts/inc/partition_check_read1.inc
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
--echo # 1.2 Decrease number of PARTITIONS --echo # 1.2 Decrease number of PARTITIONS
...@@ -102,7 +102,7 @@ while ($loop) ...@@ -102,7 +102,7 @@ while ($loop)
{ {
ALTER TABLE t1 COALESCE PARTITION 1; ALTER TABLE t1 COALESCE PARTITION 1;
--source include/partition_layout.inc --source include/partition_layout.inc
--source suite/partitions/include/partition_check_read1.inc --source suite/parts/inc/partition_check_read1.inc
dec $loop; dec $loop;
} }
--echo # 1.2.5 COALESCE of last partition --> must fail --echo # 1.2.5 COALESCE of last partition --> must fail
...@@ -112,13 +112,13 @@ ALTER TABLE t1 COALESCE PARTITION 1; ...@@ -112,13 +112,13 @@ ALTER TABLE t1 COALESCE PARTITION 1;
--echo # 1.2.6 Remove partitioning --echo # 1.2.6 Remove partitioning
ALTER TABLE t1 REMOVE PARTITIONING; ALTER TABLE t1 REMOVE PARTITIONING;
--source include/partition_layout.inc --source include/partition_layout.inc
--source suite/partitions/include/partition_check_read1.inc --source suite/parts/inc/partition_check_read1.inc
# #
--echo # 1.2.7 Remove partitioning from not partitioned table --> ???? --echo # 1.2.7 Remove partitioning from not partitioned table --> ????
ALTER TABLE t1 REMOVE PARTITIONING; ALTER TABLE t1 REMOVE PARTITIONING;
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
# --source suite/partitions/include/partition_check_drop.inc # --source suite/parts/inc/partition_check_drop.inc
--echo --echo
--echo #======================================================================== --echo #========================================================================
...@@ -135,7 +135,7 @@ $column_list ...@@ -135,7 +135,7 @@ $column_list
eval $insert_all; eval $insert_all;
# 4. Print the layout, check Readability # 4. Print the layout, check Readability
--source include/partition_layout.inc --source include/partition_layout.inc
--source suite/partitions/include/partition_check_read2.inc --source suite/parts/inc/partition_check_read2.inc
# #
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
--echo # 2.1 Increase number of PARTITIONS --echo # 2.1 Increase number of PARTITIONS
...@@ -144,7 +144,7 @@ eval $insert_all; ...@@ -144,7 +144,7 @@ eval $insert_all;
--echo # 2.1.1 Assign KEY partitioning --echo # 2.1.1 Assign KEY partitioning
ALTER TABLE t1 PARTITION BY KEY(f_int1); ALTER TABLE t1 PARTITION BY KEY(f_int1);
--source include/partition_layout.inc --source include/partition_layout.inc
--source suite/partitions/include/partition_check_read2.inc --source suite/parts/inc/partition_check_read2.inc
# #
--echo # 2.1.2 Add PARTITIONS not fitting to KEY --> must fail --echo # 2.1.2 Add PARTITIONS not fitting to KEY --> must fail
--error ER_PARTITION_WRONG_VALUES_ERROR --error ER_PARTITION_WRONG_VALUES_ERROR
...@@ -155,17 +155,17 @@ ALTER TABLE t1 ADD PARTITION (PARTITION part2 VALUES LESS THAN (0)); ...@@ -155,17 +155,17 @@ ALTER TABLE t1 ADD PARTITION (PARTITION part2 VALUES LESS THAN (0));
--echo # 2.1.3 Add two named partitions + test --echo # 2.1.3 Add two named partitions + test
ALTER TABLE t1 ADD PARTITION (PARTITION part1, PARTITION part7); ALTER TABLE t1 ADD PARTITION (PARTITION part1, PARTITION part7);
--source include/partition_layout.inc --source include/partition_layout.inc
--source suite/partitions/include/partition_check_read2.inc --source suite/parts/inc/partition_check_read2.inc
# #
--echo # 2.1.4 Add one named partition + test --echo # 2.1.4 Add one named partition + test
ALTER TABLE t1 ADD PARTITION (PARTITION part2); ALTER TABLE t1 ADD PARTITION (PARTITION part2);
--source include/partition_layout.inc --source include/partition_layout.inc
--source suite/partitions/include/partition_check_read2.inc --source suite/parts/inc/partition_check_read2.inc
# #
--echo # 2.1.5 Add four not named partitions + test --echo # 2.1.5 Add four not named partitions + test
ALTER TABLE t1 ADD PARTITION PARTITIONS 4; ALTER TABLE t1 ADD PARTITION PARTITIONS 4;
--source include/partition_layout.inc --source include/partition_layout.inc
--source suite/partitions/include/partition_check_read2.inc --source suite/parts/inc/partition_check_read2.inc
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
--echo # 2.2 Decrease number of PARTITIONS --echo # 2.2 Decrease number of PARTITIONS
...@@ -181,7 +181,7 @@ while ($loop) ...@@ -181,7 +181,7 @@ while ($loop)
{ {
ALTER TABLE t1 COALESCE PARTITION 1; ALTER TABLE t1 COALESCE PARTITION 1;
--source include/partition_layout.inc --source include/partition_layout.inc
--source suite/partitions/include/partition_check_read2.inc --source suite/parts/inc/partition_check_read2.inc
dec $loop; dec $loop;
} }
--echo # 2.2.5 COALESCE of last partition --> must fail --echo # 2.2.5 COALESCE of last partition --> must fail
...@@ -191,11 +191,11 @@ ALTER TABLE t1 COALESCE PARTITION 1; ...@@ -191,11 +191,11 @@ ALTER TABLE t1 COALESCE PARTITION 1;
--echo # 2.2.6 Remove partitioning --echo # 2.2.6 Remove partitioning
ALTER TABLE t1 REMOVE PARTITIONING; ALTER TABLE t1 REMOVE PARTITIONING;
--source include/partition_layout.inc --source include/partition_layout.inc
--source suite/partitions/include/partition_check_read2.inc --source suite/parts/inc/partition_check_read2.inc
# #
--echo # 2.2.7 Remove partitioning from not partitioned table --> ???? --echo # 2.2.7 Remove partitioning from not partitioned table --> ????
ALTER TABLE t1 REMOVE PARTITIONING; ALTER TABLE t1 REMOVE PARTITIONING;
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
# --source suite/partitions/include/partition_check_drop.inc # --source suite/parts/inc/partition_check_drop.inc
...@@ -21,19 +21,19 @@ ...@@ -21,19 +21,19 @@
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
--echo # 1.1 ALTER ... ANALYZE PARTITION part_1; --echo # 1.1 ALTER ... ANALYZE PARTITION part_1;
let $alter= ALTER TABLE t1 ANALYZE PARTITION part_1; let $alter= ALTER TABLE t1 ANALYZE PARTITION part_1;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo # 1.2 ALTER ... ANALYZE PARTITION part_1,part_2; --echo # 1.2 ALTER ... ANALYZE PARTITION part_1,part_2;
let $alter= ALTER TABLE t1 ANALYZE PARTITION part_1,part_2; let $alter= ALTER TABLE t1 ANALYZE PARTITION part_1,part_2;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo # 1.3 ALTER ... ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10; --echo # 1.3 ALTER ... ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
let $alter= ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10; let $alter= ALTER TABLE t1 ANALYZE PARTITION part_1,part_2,part_5,part_6,part_10;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo # 1.4 ALTER ... ANALYZE PARTITION part_1,part_1,part_1; --echo # 1.4 ALTER ... ANALYZE PARTITION part_1,part_1,part_1;
let $alter= ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1; let $alter= ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
...@@ -41,19 +41,19 @@ let $alter= ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1; ...@@ -41,19 +41,19 @@ let $alter= ALTER TABLE t1 ANALYZE PARTITION part_1,part_1,part_1;
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
--echo # 2.1 ALTER ... CHECK PARTITION part_1; --echo # 2.1 ALTER ... CHECK PARTITION part_1;
let $alter= ALTER TABLE t1 CHECK PARTITION part_1; let $alter= ALTER TABLE t1 CHECK PARTITION part_1;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo # 2.2 ALTER ... CHECK PARTITION part_1,part_2; --echo # 2.2 ALTER ... CHECK PARTITION part_1,part_2;
let $alter= ALTER TABLE t1 CHECK PARTITION part_1,part_2; let $alter= ALTER TABLE t1 CHECK PARTITION part_1,part_2;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo # 2.3 ALTER ... CHECK PARTITION part_1,part_2,part_5,part_6,part_10; --echo # 2.3 ALTER ... CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
let $alter= ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10; let $alter= ALTER TABLE t1 CHECK PARTITION part_1,part_2,part_5,part_6,part_10;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo # 2.4 ALTER ... CHECK PARTITION part_1,part_1,part_1; --echo # 2.4 ALTER ... CHECK PARTITION part_1,part_1,part_1;
let $alter= ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1; let $alter= ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
...@@ -61,19 +61,19 @@ let $alter= ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1; ...@@ -61,19 +61,19 @@ let $alter= ALTER TABLE t1 CHECK PARTITION part_1,part_1,part_1;
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
--echo # 3.1 ALTER ... OPTIMIZE PARTITION part_1; --echo # 3.1 ALTER ... OPTIMIZE PARTITION part_1;
let $alter= ALTER TABLE t1 OPTIMIZE PARTITION part_1; let $alter= ALTER TABLE t1 OPTIMIZE PARTITION part_1;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo # 3.2 ALTER ... OPTIMIZE PARTITION part_1,part_2; --echo # 3.2 ALTER ... OPTIMIZE PARTITION part_1,part_2;
let $alter= ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2; let $alter= ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo # 3.3 ALTER ... OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10; --echo # 3.3 ALTER ... OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
let $alter= ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10; let $alter= ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2,part_5,part_6,part_10;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo # 3.4 ALTER ... OPTIMIZE PARTITION part_1,part_1,part_1; --echo # 3.4 ALTER ... OPTIMIZE PARTITION part_1,part_1,part_1;
let $alter= ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1; let $alter= ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
...@@ -81,19 +81,19 @@ let $alter= ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1; ...@@ -81,19 +81,19 @@ let $alter= ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_1,part_1;
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
--echo # 4.1 ALTER ... REBUILD PARTITION part_1; --echo # 4.1 ALTER ... REBUILD PARTITION part_1;
let $alter= ALTER TABLE t1 REBUILD PARTITION part_1; let $alter= ALTER TABLE t1 REBUILD PARTITION part_1;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo # 4.2 ALTER ... REBUILD PARTITION part_1,part_2; --echo # 4.2 ALTER ... REBUILD PARTITION part_1,part_2;
let $alter= ALTER TABLE t1 REBUILD PARTITION part_1,part_2; let $alter= ALTER TABLE t1 REBUILD PARTITION part_1,part_2;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo # 4.3 ALTER ... REBUILD PARTITION part_1,part_2,part_5,part_6,part_10; --echo # 4.3 ALTER ... REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
let $alter= ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10; let $alter= ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo # 4.4 ALTER ... REBUILD PARTITION part_1,part_1,part_1; --echo # 4.4 ALTER ... REBUILD PARTITION part_1,part_1,part_1;
let $alter= ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1; let $alter= ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
...@@ -101,19 +101,19 @@ let $alter= ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1; ...@@ -101,19 +101,19 @@ let $alter= ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
--echo # 5.1 ALTER ... REBUILD PARTITION part_1; --echo # 5.1 ALTER ... REBUILD PARTITION part_1;
let $alter= ALTER TABLE t1 REBUILD PARTITION part_1; let $alter= ALTER TABLE t1 REBUILD PARTITION part_1;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo # 5.2 ALTER ... REBUILD PARTITION part_1,part_2; --echo # 5.2 ALTER ... REBUILD PARTITION part_1,part_2;
let $alter= ALTER TABLE t1 REBUILD PARTITION part_1,part_2; let $alter= ALTER TABLE t1 REBUILD PARTITION part_1,part_2;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo # 5.3 ALTER ... REBUILD PARTITION part_1,part_2,part_5,part_6,part_10; --echo # 5.3 ALTER ... REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
let $alter= ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10; let $alter= ALTER TABLE t1 REBUILD PARTITION part_1,part_2,part_5,part_6,part_10;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo # 5.4 ALTER ... REBUILD PARTITION part_1,part_1,part_1; --echo # 5.4 ALTER ... REBUILD PARTITION part_1,part_1,part_1;
let $alter= ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1; let $alter= ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
...@@ -121,6 +121,6 @@ let $alter= ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1; ...@@ -121,6 +121,6 @@ let $alter= ALTER TABLE t1 REBUILD PARTITION part_1,part_1,part_1;
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
--echo # 6.1 ALTER ... REMOVE PARTITIONING; --echo # 6.1 ALTER ... REMOVE PARTITIONING;
let $alter= ALTER TABLE t1 REMOVE PARTITIONING; let $alter= ALTER TABLE t1 REMOVE PARTITIONING;
--source suite/partitions/include/partition_alter_41.inc --source suite/parts/inc/partition_alter_41.inc
# --source include/partition_alter_41.inc # --source include/partition_alter_41.inc
...@@ -62,7 +62,7 @@ if ($unexpected_error) ...@@ -62,7 +62,7 @@ if ($unexpected_error)
if ($run_test) if ($run_test)
{ {
eval $insert_second_half; eval $insert_second_half;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
} }
DROP TABLE t1; DROP TABLE t1;
...@@ -55,7 +55,7 @@ $column_list ...@@ -55,7 +55,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY KEY #----------- PARTITION BY KEY
...@@ -68,7 +68,7 @@ $column_list ...@@ -68,7 +68,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY LIST #----------- PARTITION BY LIST
...@@ -89,7 +89,7 @@ $column_list ...@@ -89,7 +89,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY RANGE #----------- PARTITION BY RANGE
...@@ -111,7 +111,7 @@ $column_list ...@@ -111,7 +111,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY RANGE -- SUBPARTITION BY HASH #----------- PARTITION BY RANGE -- SUBPARTITION BY HASH
...@@ -132,7 +132,7 @@ $column_list ...@@ -132,7 +132,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY RANGE -- SUBPARTITION BY KEY #----------- PARTITION BY RANGE -- SUBPARTITION BY KEY
...@@ -156,7 +156,7 @@ $column_list ...@@ -156,7 +156,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY LIST -- SUBPARTITION BY HASH #----------- PARTITION BY LIST -- SUBPARTITION BY HASH
...@@ -177,7 +177,7 @@ $column_list ...@@ -177,7 +177,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY LIST -- SUBPARTITION BY KEY #----------- PARTITION BY LIST -- SUBPARTITION BY KEY
...@@ -198,5 +198,5 @@ $column_list ...@@ -198,5 +198,5 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
...@@ -55,7 +55,7 @@ $column_list ...@@ -55,7 +55,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY KEY #----------- PARTITION BY KEY
...@@ -68,7 +68,7 @@ $column_list ...@@ -68,7 +68,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY LIST #----------- PARTITION BY LIST
...@@ -89,7 +89,7 @@ $column_list ...@@ -89,7 +89,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY RANGE #----------- PARTITION BY RANGE
...@@ -111,7 +111,7 @@ $column_list ...@@ -111,7 +111,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY RANGE -- SUBPARTITION BY HASH #----------- PARTITION BY RANGE -- SUBPARTITION BY HASH
...@@ -132,7 +132,7 @@ $column_list ...@@ -132,7 +132,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY RANGE -- SUBPARTITION BY KEY #----------- PARTITION BY RANGE -- SUBPARTITION BY KEY
...@@ -156,7 +156,7 @@ $column_list ...@@ -156,7 +156,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY LIST -- SUBPARTITION BY HASH #----------- PARTITION BY LIST -- SUBPARTITION BY HASH
...@@ -177,7 +177,7 @@ $column_list ...@@ -177,7 +177,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY LIST -- SUBPARTITION BY KEY #----------- PARTITION BY LIST -- SUBPARTITION BY KEY
...@@ -198,5 +198,5 @@ $column_list ...@@ -198,5 +198,5 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
...@@ -55,7 +55,7 @@ $column_list ...@@ -55,7 +55,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY KEY #----------- PARTITION BY KEY
...@@ -68,7 +68,7 @@ $column_list ...@@ -68,7 +68,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY LIST #----------- PARTITION BY LIST
...@@ -89,7 +89,7 @@ $column_list ...@@ -89,7 +89,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY RANGE #----------- PARTITION BY RANGE
...@@ -111,7 +111,7 @@ $column_list ...@@ -111,7 +111,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY RANGE -- SUBPARTITION BY HASH #----------- PARTITION BY RANGE -- SUBPARTITION BY HASH
...@@ -132,7 +132,7 @@ $column_list ...@@ -132,7 +132,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY RANGE -- SUBPARTITION BY KEY #----------- PARTITION BY RANGE -- SUBPARTITION BY KEY
...@@ -156,7 +156,7 @@ $column_list ...@@ -156,7 +156,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY LIST -- SUBPARTITION BY HASH #----------- PARTITION BY LIST -- SUBPARTITION BY HASH
...@@ -177,7 +177,7 @@ $column_list ...@@ -177,7 +177,7 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
#----------- PARTITION BY LIST -- SUBPARTITION BY KEY #----------- PARTITION BY LIST -- SUBPARTITION BY KEY
...@@ -198,5 +198,5 @@ $column_list ...@@ -198,5 +198,5 @@ $column_list
$unique $unique
) )
$partitioning; $partitioning;
--source suite/partitions/include/partition_alter_1.inc --source suite/parts/inc/partition_alter_1.inc
# --source include/partition_alter_1.inc # --source include/partition_alter_1.inc
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
--echo # 1.1 The partitioning function contains one column. --echo # 1.1 The partitioning function contains one column.
let $unique= ; let $unique= ;
--source suite/partitions/include/partition_methods1.inc --source suite/parts/inc/partition_methods1.inc
# --source include/partition_methods1.inc # --source include/partition_methods1.inc
# #
--echo # 1.1.1 with DATA DIECTORY/INDEX DIRECTORY --echo # 1.1.1 with DATA DIECTORY/INDEX DIRECTORY
...@@ -49,16 +49,16 @@ let $unique= ; ...@@ -49,16 +49,16 @@ let $unique= ;
let $index_directory = `select @indx_dir`; let $index_directory = `select @indx_dir`;
let $with_directories= 1; let $with_directories= 1;
--source suite/partitions/include/partition_methods1.inc --source suite/parts/inc/partition_methods1.inc
# --source include/partition_methods1.inc # --source include/partition_methods1.inc
--source suite/partitions/include/partition_directory.inc --source suite/parts/inc/partition_directory.inc
# --source include/partition_methods1.inc # --source include/partition_methods1.inc
let $with_directories= 0; let $with_directories= 0;
--enable_query_log --enable_query_log
# #
--echo # 1.2 The partitioning function contains two columns. --echo # 1.2 The partitioning function contains two columns.
let $unique= ; let $unique= ;
--source suite/partitions/include/partition_methods2.inc --source suite/parts/inc/partition_methods2.inc
# --source include/partition_methods2.inc # --source include/partition_methods2.inc
# #
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
...@@ -71,12 +71,12 @@ if ($more_pk_ui_tests) ...@@ -71,12 +71,12 @@ if ($more_pk_ui_tests)
{ {
--echo # 2.1 PRIMARY KEY consisting of one column --echo # 2.1 PRIMARY KEY consisting of one column
let $unique= , PRIMARY KEY(f_int1); let $unique= , PRIMARY KEY(f_int1);
--source suite/partitions/include/partition_methods1.inc --source suite/parts/inc/partition_methods1.inc
# --source include/partition_methods1.inc # --source include/partition_methods1.inc
} }
--echo # 2.2 UNIQUE INDEX consisting of one column --echo # 2.2 UNIQUE INDEX consisting of one column
let $unique= , UNIQUE INDEX uidx1 (f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int1);
--source suite/partitions/include/partition_methods1.inc --source suite/parts/inc/partition_methods1.inc
# --source include/partition_methods1.inc # --source include/partition_methods1.inc
--echo # 2.2.1 with DATA DIECTORY/INDEX DIRECTORY --echo # 2.2.1 with DATA DIECTORY/INDEX DIRECTORY
...@@ -97,7 +97,7 @@ if ($more_pk_ui_tests) ...@@ -97,7 +97,7 @@ if ($more_pk_ui_tests)
let $index_directory = `select @indx_dir`; let $index_directory = `select @indx_dir`;
let $with_directories= TRUE; let $with_directories= TRUE;
--source suite/partitions/include/partition_methods1.inc --source suite/parts/inc/partition_methods1.inc
# --source include/partition_methods1.inc # --source include/partition_methods1.inc
let $with_directories= FALSE; let $with_directories= FALSE;
--enable_query_log --enable_query_log
...@@ -106,19 +106,19 @@ if ($more_pk_ui_tests) ...@@ -106,19 +106,19 @@ if ($more_pk_ui_tests)
{ {
--echo # 2.3 PRIMARY KEY consisting of two columns --echo # 2.3 PRIMARY KEY consisting of two columns
let $unique= , PRIMARY KEY(f_int1,f_int2); let $unique= , PRIMARY KEY(f_int1,f_int2);
--source suite/partitions/include/partition_methods1.inc --source suite/parts/inc/partition_methods1.inc
# --source include/partition_methods1.inc # --source include/partition_methods1.inc
let $unique= , PRIMARY KEY(f_int2,f_int1); let $unique= , PRIMARY KEY(f_int2,f_int1);
--source suite/partitions/include/partition_methods1.inc --source suite/parts/inc/partition_methods1.inc
# --source include/partition_methods1.inc # --source include/partition_methods1.inc
} }
# #
--echo # 2.4 UNIQUE INDEX consisting of two columns --echo # 2.4 UNIQUE INDEX consisting of two columns
let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2); let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2);
--source suite/partitions/include/partition_methods1.inc --source suite/parts/inc/partition_methods1.inc
# --source include/partition_methods1.inc # --source include/partition_methods1.inc
let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1);
--source suite/partitions/include/partition_methods1.inc --source suite/parts/inc/partition_methods1.inc
# --source include/partition_methods1.inc # --source include/partition_methods1.inc
# #
} }
...@@ -126,14 +126,14 @@ if ($more_pk_ui_tests) ...@@ -126,14 +126,14 @@ if ($more_pk_ui_tests)
if ($do_pk_tests) if ($do_pk_tests)
{ {
let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2), PRIMARY KEY(f_int2,f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2), PRIMARY KEY(f_int2,f_int1);
--source suite/partitions/include/partition_methods1.inc --source suite/parts/inc/partition_methods1.inc
# --source include/partition_methods1.inc # --source include/partition_methods1.inc
let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1), PRIMARY KEY(f_int1,f_int2); let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1), PRIMARY KEY(f_int1,f_int2);
--source suite/partitions/include/partition_methods1.inc --source suite/parts/inc/partition_methods1.inc
# --source include/partition_methods1.inc # --source include/partition_methods1.inc
} }
let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2), UNIQUE INDEX uidx2 (f_int2,f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2), UNIQUE INDEX uidx2 (f_int2,f_int1);
--source suite/partitions/include/partition_methods1.inc --source suite/parts/inc/partition_methods1.inc
# --source include/partition_methods1.inc # --source include/partition_methods1.inc
--echo #------------------------------------------------------------------------ --echo #------------------------------------------------------------------------
...@@ -147,20 +147,20 @@ if ($more_pk_ui_tests) ...@@ -147,20 +147,20 @@ if ($more_pk_ui_tests)
{ {
--echo # 3.1 PRIMARY KEY consisting of two columns --echo # 3.1 PRIMARY KEY consisting of two columns
let $unique= , PRIMARY KEY(f_int1,f_int2); let $unique= , PRIMARY KEY(f_int1,f_int2);
--source suite/partitions/include/partition_methods2.inc --source suite/parts/inc/partition_methods2.inc
# --source include/partition_methods2.inc # --source include/partition_methods2.inc
let $unique= , PRIMARY KEY(f_int2,f_int1); let $unique= , PRIMARY KEY(f_int2,f_int1);
--source suite/partitions/include/partition_methods2.inc --source suite/parts/inc/partition_methods2.inc
# --source include/partition_methods2.inc # --source include/partition_methods2.inc
} }
# #
--echo # 3.2 UNIQUE INDEX consisting of two columns --echo # 3.2 UNIQUE INDEX consisting of two columns
let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2); let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2);
--source suite/partitions/include/partition_methods2.inc --source suite/parts/inc/partition_methods2.inc
# --source include/partition_methods2.inc # --source include/partition_methods2.inc
let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1);
--source suite/partitions/include/partition_methods2.inc --source suite/parts/inc/partition_methods2.inc
# --source include/partition_methods2.inc # --source include/partition_methods2.inc
} }
# #
...@@ -168,12 +168,12 @@ if ($more_pk_ui_tests) ...@@ -168,12 +168,12 @@ if ($more_pk_ui_tests)
if ($do_pk_tests) if ($do_pk_tests)
{ {
let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2), PRIMARY KEY(f_int2,f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2), PRIMARY KEY(f_int2,f_int1);
--source suite/partitions/include/partition_methods2.inc --source suite/parts/inc/partition_methods2.inc
# --source include/partition_methods2.inc # --source include/partition_methods2.inc
let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1), PRIMARY KEY(f_int1,f_int2); let $unique= , UNIQUE INDEX uidx1 (f_int2,f_int1), PRIMARY KEY(f_int1,f_int2);
--source suite/partitions/include/partition_methods2.inc --source suite/parts/inc/partition_methods2.inc
# --source include/partition_methods2.inc # --source include/partition_methods2.inc
} }
let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2), UNIQUE INDEX uidx2 (f_int2,f_int1); let $unique= , UNIQUE INDEX uidx1 (f_int1,f_int2), UNIQUE INDEX uidx2 (f_int2,f_int1);
--source suite/partitions/include/partition_methods2.inc --source suite/parts/inc/partition_methods2.inc
# --source include/partition_methods2.inc # --source include/partition_methods2.inc
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
--echo # Start usability test (include/partition_check.inc) --echo # Start usability test (include/partition_check.inc)
# Print the CREATE TABLE STATEMENT and store the current layout of the table # Print the CREATE TABLE STATEMENT and store the current layout of the table
--source suite/partitions/include/partition_layout_check1.inc --source suite/parts/inc/partition_layout_check1.inc
# --source include/partition_layout_check1.inc # --source include/partition_layout_check1.inc
...@@ -283,12 +283,12 @@ if ($any_unique) ...@@ -283,12 +283,12 @@ if ($any_unique)
## 2.1 Read all existing and some not existing records of table ## 2.1 Read all existing and some not existing records of table
# per f_int1 used in partitioning function # per f_int1 used in partitioning function
let $col_to_check= f_int1; let $col_to_check= f_int1;
--source suite/partitions/include/partition_check_read.inc --source suite/parts/inc/partition_check_read.inc
# --source include/partition_check_read.inc # --source include/partition_check_read.inc
## 2.2 Read all existing and some not existing records of table ## 2.2 Read all existing and some not existing records of table
# per f_int2 used in partitioning function # per f_int2 used in partitioning function
let $col_to_check= f_int2; let $col_to_check= f_int2;
--source suite/partitions/include/partition_check_read.inc --source suite/parts/inc/partition_check_read.inc
if ($fixed_bug18735) if ($fixed_bug18735)
{ {
...@@ -690,7 +690,7 @@ if ($any_unique) ...@@ -690,7 +690,7 @@ if ($any_unique)
ON DUPLICATE KEY ON DUPLICATE KEY
UPDATE f_int1 = 2 * @max_row + source_tab.f_int1, UPDATE f_int1 = 2 * @max_row + source_tab.f_int1,
f_charbig = 'was updated'; f_charbig = 'was updated';
--source suite/partitions/include/partition_20.inc --source suite/parts/inc/partition_20.inc
# --source include/partition_20.inc # --source include/partition_20.inc
} }
...@@ -706,7 +706,7 @@ if ($any_unique) ...@@ -706,7 +706,7 @@ if ($any_unique)
ON DUPLICATE KEY ON DUPLICATE KEY
UPDATE f_int2 = 2 * @max_row + source_tab.f_int1, UPDATE f_int2 = 2 * @max_row + source_tab.f_int1,
f_charbig = 'was updated'; f_charbig = 'was updated';
--source suite/partitions/include/partition_20.inc --source suite/parts/inc/partition_20.inc
# --source include/partition_20.inc # --source include/partition_20.inc
} }
...@@ -720,7 +720,7 @@ if ($any_unique) ...@@ -720,7 +720,7 @@ if ($any_unique)
UPDATE f_int1 = 2 * @max_row + source_tab.f_int1, UPDATE f_int1 = 2 * @max_row + source_tab.f_int1,
f_int2 = 2 * @max_row + source_tab.f_int1, f_int2 = 2 * @max_row + source_tab.f_int1,
f_charbig = 'was updated'; f_charbig = 'was updated';
--source suite/partitions/include/partition_20.inc --source suite/parts/inc/partition_20.inc
# --source include/partition_20.inc # --source include/partition_20.inc
## 6.4 REPLACE ## 6.4 REPLACE
...@@ -991,28 +991,28 @@ let $statement= INSERT INTO t0_aux(f_int1,f_int2,f_char1,f_char2,f_charbig) ...@@ -991,28 +991,28 @@ let $statement= INSERT INTO t0_aux(f_int1,f_int2,f_char1,f_char2,f_charbig)
SELECT f_int1,f_int2,f_char1,f_char2,NULL FROM t0_template SELECT f_int1,f_int2,f_char1,f_char2,NULL FROM t0_template
WHERE f_int1 BETWEEN @max_row_div2 - 1 AND @max_row_div2 + 1; WHERE f_int1 BETWEEN @max_row_div2 - 1 AND @max_row_div2 + 1;
let $event= BEFORE INSERT; let $event= BEFORE INSERT;
--source suite/partitions/include/partition_trigg1.inc --source suite/parts/inc/partition_trigg1.inc
# --source include/partition_trigg1.inc # --source include/partition_trigg1.inc
let $event= AFTER INSERT; let $event= AFTER INSERT;
--source suite/partitions/include/partition_trigg1.inc --source suite/parts/inc/partition_trigg1.inc
# --source include/partition_trigg1.inc # --source include/partition_trigg1.inc
let $statement= UPDATE t0_aux SET f_int1 = - f_int1, f_int2 = - f_int2 let $statement= UPDATE t0_aux SET f_int1 = - f_int1, f_int2 = - f_int2
WHERE f_int1 IN (- (@max_row_div2 - 1),- @max_row_div2,- (@max_row_div2 + 1)); WHERE f_int1 IN (- (@max_row_div2 - 1),- @max_row_div2,- (@max_row_div2 + 1));
let $event= BEFORE UPDATE; let $event= BEFORE UPDATE;
--source suite/partitions/include/partition_trigg1.inc --source suite/parts/inc/partition_trigg1.inc
# --source include/partition_trigg1.inc # --source include/partition_trigg1.inc
let $event= AFTER UPDATE; let $event= AFTER UPDATE;
--source suite/partitions/include/partition_trigg1.inc --source suite/parts/inc/partition_trigg1.inc
# --source include/partition_trigg1.inc # --source include/partition_trigg1.inc
let $statement= DELETE FROM t0_aux let $statement= DELETE FROM t0_aux
WHERE f_int1 IN (- (@max_row_div2 - 1),- @max_row_div2,- (@max_row_div2 + 1)); WHERE f_int1 IN (- (@max_row_div2 - 1),- @max_row_div2,- (@max_row_div2 + 1));
let $event= BEFORE DELETE; let $event= BEFORE DELETE;
--source suite/partitions/include/partition_trigg1.inc --source suite/parts/inc/partition_trigg1.inc
# --source include/partition_trigg1.inc # --source include/partition_trigg1.inc
let $event= AFTER DELETE; let $event= AFTER DELETE;
--source suite/partitions/include/partition_trigg1.inc --source suite/parts/inc/partition_trigg1.inc
# --source include/partition_trigg1.inc # --source include/partition_trigg1.inc
# Cleanup # Cleanup
...@@ -1045,28 +1045,28 @@ let $statement= INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) ...@@ -1045,28 +1045,28 @@ let $statement= INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
SELECT f_int1,f_int2,f_char1,f_char2,NULL FROM t0_template SELECT f_int1,f_int2,f_char1,f_char2,NULL FROM t0_template
WHERE f_int1 BETWEEN @max_row_div2 - 1 AND @max_row_div2 + 1; WHERE f_int1 BETWEEN @max_row_div2 - 1 AND @max_row_div2 + 1;
let $event= BEFORE INSERT; let $event= BEFORE INSERT;
--source suite/partitions/include/partition_trigg1.inc --source suite/parts/inc/partition_trigg1.inc
# --source include/partition_trigg1.inc # --source include/partition_trigg1.inc
let $event= AFTER INSERT; let $event= AFTER INSERT;
--source suite/partitions/include/partition_trigg1.inc --source suite/parts/inc/partition_trigg1.inc
# --source include/partition_trigg1.inc # --source include/partition_trigg1.inc
let $statement= UPDATE t1 SET f_int1 = - f_int1, f_int2 = - f_int2 let $statement= UPDATE t1 SET f_int1 = - f_int1, f_int2 = - f_int2
WHERE f_int1 IN (- (@max_row_div2 - 1),- @max_row_div2,- (@max_row_div2 + 1)); WHERE f_int1 IN (- (@max_row_div2 - 1),- @max_row_div2,- (@max_row_div2 + 1));
let $event= BEFORE UPDATE; let $event= BEFORE UPDATE;
--source suite/partitions/include/partition_trigg1.inc --source suite/parts/inc/partition_trigg1.inc
# --source include/partition_trigg1.inc # --source include/partition_trigg1.inc
let $event= AFTER UPDATE; let $event= AFTER UPDATE;
--source suite/partitions/include/partition_trigg1.inc --source suite/parts/inc/partition_trigg1.inc
# --source include/partition_trigg1.inc # --source include/partition_trigg1.inc
let $statement= DELETE FROM t1 let $statement= DELETE FROM t1
WHERE f_int1 IN (- (@max_row_div2 - 1),- @max_row_div2,- (@max_row_div2 + 1)); WHERE f_int1 IN (- (@max_row_div2 - 1),- @max_row_div2,- (@max_row_div2 + 1));
let $event= BEFORE DELETE; let $event= BEFORE DELETE;
--source suite/partitions/include/partition_trigg1.inc --source suite/parts/inc/partition_trigg1.inc
# --source include/partition_trigg1.inc # --source include/partition_trigg1.inc
let $event= AFTER DELETE; let $event= AFTER DELETE;
--source suite/partitions/include/partition_trigg1.inc --source suite/parts/inc/partition_trigg1.inc
# --source include/partition_trigg1.inc # --source include/partition_trigg1.inc
eval DELETE FROM $tab_in_trigg eval DELETE FROM $tab_in_trigg
WHERE f_int1 BETWEEN @max_row_div2 - 1 AND @max_row_div2 + 1; WHERE f_int1 BETWEEN @max_row_div2 - 1 AND @max_row_div2 + 1;
...@@ -1088,7 +1088,7 @@ let $statement= UPDATE t1 ...@@ -1088,7 +1088,7 @@ let $statement= UPDATE t1
SET f_charbig = '####updated per update statement itself####'; SET f_charbig = '####updated per update statement itself####';
let $source= old; let $source= old;
let $event= BEFORE UPDATE; let $event= BEFORE UPDATE;
--source suite/partitions/include/partition_trigg2.inc --source suite/parts/inc/partition_trigg2.inc
# --source include/partition_trigg2.inc # --source include/partition_trigg2.inc
# FIXME when AFTER TRIGGER can be used # FIXME when AFTER TRIGGER can be used
# Currently (2006-02-23) a AFTER TRIGGER is not allowed to modify a row, which # Currently (2006-02-23) a AFTER TRIGGER is not allowed to modify a row, which
...@@ -1104,7 +1104,7 @@ f_charbig = '####updated per update statement itself####'; ...@@ -1104,7 +1104,7 @@ f_charbig = '####updated per update statement itself####';
# 9.3.2.1 "old" values are used as source within the trigger. # 9.3.2.1 "old" values are used as source within the trigger.
let $source= old; let $source= old;
let $event= BEFORE UPDATE; let $event= BEFORE UPDATE;
--source suite/partitions/include/partition_trigg2.inc --source suite/parts/inc/partition_trigg2.inc
# --source include/partition_trigg2.inc # --source include/partition_trigg2.inc
# FIXME when AFTER TRIGGER can be used # FIXME when AFTER TRIGGER can be used
# Currently (2006-02-23) a AFTER TRIGGER is not allowed to modify a row, which # Currently (2006-02-23) a AFTER TRIGGER is not allowed to modify a row, which
...@@ -1112,7 +1112,7 @@ let $event= BEFORE UPDATE; ...@@ -1112,7 +1112,7 @@ let $event= BEFORE UPDATE;
# 9.3.2.2 "new" values are used as source within the trigger. # 9.3.2.2 "new" values are used as source within the trigger.
let $source= new; let $source= new;
let $event= BEFORE UPDATE; let $event= BEFORE UPDATE;
--source suite/partitions/include/partition_trigg2.inc --source suite/parts/inc/partition_trigg2.inc
# --source include/partition_trigg2.inc # --source include/partition_trigg2.inc
# FIXME when AFTER TRIGGER can be used # FIXME when AFTER TRIGGER can be used
...@@ -1131,7 +1131,7 @@ WHERE f_int1 BETWEEN @max_row_div2 - 1 AND @max_row_div2 + 1 ...@@ -1131,7 +1131,7 @@ WHERE f_int1 BETWEEN @max_row_div2 - 1 AND @max_row_div2 + 1
ORDER BY f_int1; ORDER BY f_int1;
let $event= BEFORE INSERT; let $event= BEFORE INSERT;
let $source= new; let $source= new;
--source suite/partitions/include/partition_trigg3.inc --source suite/parts/inc/partition_trigg3.inc
# --source include/partition_trigg3.inc # --source include/partition_trigg3.inc
# FIXME when AFTER TRIGGER can be used # FIXME when AFTER TRIGGER can be used
...@@ -1143,7 +1143,7 @@ WHERE f_int1 BETWEEN @max_row_div2 - 1 AND @max_row_div2 + 1 ...@@ -1143,7 +1143,7 @@ WHERE f_int1 BETWEEN @max_row_div2 - 1 AND @max_row_div2 + 1
ORDER BY f_int1; ORDER BY f_int1;
let $event= BEFORE INSERT; let $event= BEFORE INSERT;
let $source= new; let $source= new;
--source suite/partitions/include/partition_trigg3.inc --source suite/parts/inc/partition_trigg3.inc
# --source include/partition_trigg3.inc # --source include/partition_trigg3.inc
# FIXME when AFTER TRIGGER can be used # FIXME when AFTER TRIGGER can be used
...@@ -1174,11 +1174,11 @@ CHECKSUM TABLE t1 EXTENDED; ...@@ -1174,11 +1174,11 @@ CHECKSUM TABLE t1 EXTENDED;
# clustered index. # clustered index.
# FIXME What will happen with NDB ? # FIXME What will happen with NDB ?
OPTIMIZE TABLE t1; OPTIMIZE TABLE t1;
--source suite/partitions/include/partition_layout_check2.inc --source suite/parts/inc/partition_layout_check2.inc
# --source include/partition_layout_check2.inc # --source include/partition_layout_check2.inc
# 10.2 REPAIR TABLE # 10.2 REPAIR TABLE
REPAIR TABLE t1 EXTENDED; REPAIR TABLE t1 EXTENDED;
--source suite/partitions/include/partition_layout_check2.inc --source suite/parts/inc/partition_layout_check2.inc
# --source include/partition_layout_check2.inc # --source include/partition_layout_check2.inc
# #
# 11.3 Truncate # 11.3 Truncate
...@@ -1192,7 +1192,7 @@ if ($no_debug) ...@@ -1192,7 +1192,7 @@ if ($no_debug)
} }
SELECT '# check TRUNCATE success: ' AS "",COUNT(*) = 0 AS "" FROM t1; SELECT '# check TRUNCATE success: ' AS "",COUNT(*) = 0 AS "" FROM t1;
--enable_query_log --enable_query_log
--source suite/partitions/include/partition_layout_check2.inc --source suite/parts/inc/partition_layout_check2.inc
# --source include/partition_layout_check2.inc # --source include/partition_layout_check2.inc
--echo # End usability test (include/partition_check.inc) --echo # End usability test (include/partition_check.inc)
...@@ -48,10 +48,10 @@ $unique ...@@ -48,10 +48,10 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
#----------- PARTITION BY KEY #----------- PARTITION BY KEY
if ($with_partitioning) if ($with_partitioning)
...@@ -85,10 +85,10 @@ $unique ...@@ -85,10 +85,10 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
#----------- PARTITION BY LIST #----------- PARTITION BY LIST
if ($with_partitioning) if ($with_partitioning)
...@@ -120,10 +120,10 @@ $unique ...@@ -120,10 +120,10 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
#----------- PARTITION BY RANGE #----------- PARTITION BY RANGE
if ($with_partitioning) if ($with_partitioning)
...@@ -151,10 +151,10 @@ $unique ...@@ -151,10 +151,10 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
#----------- PARTITION BY RANGE -- SUBPARTITION BY HASH #----------- PARTITION BY RANGE -- SUBPARTITION BY HASH
if ($with_partitioning) if ($with_partitioning)
...@@ -179,10 +179,10 @@ $unique ...@@ -179,10 +179,10 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
#----------- PARTITION BY RANGE -- SUBPARTITION BY KEY #----------- PARTITION BY RANGE -- SUBPARTITION BY KEY
if ($with_partitioning) if ($with_partitioning)
...@@ -210,10 +210,10 @@ $unique ...@@ -210,10 +210,10 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
#----------- PARTITION BY LIST -- SUBPARTITION BY HASH #----------- PARTITION BY LIST -- SUBPARTITION BY HASH
if ($with_partitioning) if ($with_partitioning)
...@@ -254,10 +254,10 @@ $unique ...@@ -254,10 +254,10 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
let $with_directories= FALSE; let $with_directories= FALSE;
...@@ -44,7 +44,7 @@ $column_list ...@@ -44,7 +44,7 @@ $column_list
PARTITION BY HASH(f_int1) PARTITIONS 2; PARTITION BY HASH(f_int1) PARTITIONS 2;
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template; SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
# #
...@@ -61,7 +61,7 @@ PARTITION BY HASH(f_int1) ...@@ -61,7 +61,7 @@ PARTITION BY HASH(f_int1)
); );
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template; SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
eval CREATE TABLE t1 ( eval CREATE TABLE t1 (
...@@ -78,7 +78,7 @@ SUBPARTITION BY HASH(f_int1) ...@@ -78,7 +78,7 @@ SUBPARTITION BY HASH(f_int1)
); );
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template; SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
# #
...@@ -95,7 +95,7 @@ PARTITION BY HASH(f_int1) ...@@ -95,7 +95,7 @@ PARTITION BY HASH(f_int1)
); );
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template; SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
eval CREATE TABLE t1 ( eval CREATE TABLE t1 (
...@@ -107,7 +107,7 @@ PARTITION BY HASH(f_int1) ...@@ -107,7 +107,7 @@ PARTITION BY HASH(f_int1)
); );
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template; SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
eval CREATE TABLE t1 ( eval CREATE TABLE t1 (
...@@ -124,7 +124,7 @@ SUBPARTITION BY HASH(f_int1) ...@@ -124,7 +124,7 @@ SUBPARTITION BY HASH(f_int1)
); );
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template; SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
eval CREATE TABLE t1 ( eval CREATE TABLE t1 (
...@@ -141,7 +141,7 @@ SUBPARTITION BY HASH(f_int1) ...@@ -141,7 +141,7 @@ SUBPARTITION BY HASH(f_int1)
); );
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template; SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
# #
...@@ -163,7 +163,7 @@ SUBPARTITION BY HASH(f_int1) ...@@ -163,7 +163,7 @@ SUBPARTITION BY HASH(f_int1)
); );
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template; SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
eval CREATE TABLE t1 ( eval CREATE TABLE t1 (
...@@ -180,7 +180,7 @@ SUBPARTITION BY HASH(f_int1) ...@@ -180,7 +180,7 @@ SUBPARTITION BY HASH(f_int1)
); );
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template; SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
# #
...@@ -198,7 +198,7 @@ PARTITION BY HASH(f_int1) ...@@ -198,7 +198,7 @@ PARTITION BY HASH(f_int1)
); );
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template; SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
eval CREATE TABLE t1 ( eval CREATE TABLE t1 (
...@@ -215,7 +215,7 @@ SUBPARTITION BY HASH(f_int1) ...@@ -215,7 +215,7 @@ SUBPARTITION BY HASH(f_int1)
); );
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template; SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
--echo # 6.2 Storage engine assignment after partition name + after --echo # 6.2 Storage engine assignment after partition name + after
...@@ -235,7 +235,7 @@ SUBPARTITION BY HASH(f_int1) ...@@ -235,7 +235,7 @@ SUBPARTITION BY HASH(f_int1)
); );
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template; SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -251,7 +251,7 @@ $column_list ...@@ -251,7 +251,7 @@ $column_list
PARTITION BY HASH(f_int1) ( PARTITION part1 ENGINE = $engine); PARTITION BY HASH(f_int1) ( PARTITION part1 ENGINE = $engine);
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template; SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
# Bug#15966 Partitions: crash if session default engine <> engine used in create table # Bug#15966 Partitions: crash if session default engine <> engine used in create table
...@@ -265,7 +265,7 @@ SUBPARTITION BY HASH(f_int1) ...@@ -265,7 +265,7 @@ SUBPARTITION BY HASH(f_int1)
SUBPARTITION subpart12 STORAGE ENGINE = $engine)); SUBPARTITION subpart12 STORAGE ENGINE = $engine));
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig) INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template; SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
eval SET SESSION storage_engine=$engine; eval SET SESSION storage_engine=$engine;
...@@ -65,10 +65,10 @@ $unique ...@@ -65,10 +65,10 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
#----------- PARTITION BY KEY #----------- PARTITION BY KEY
if ($with_partitioning) if ($with_partitioning)
...@@ -107,10 +107,10 @@ $unique ...@@ -107,10 +107,10 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
#----------- PARTITION BY LIST #----------- PARTITION BY LIST
if ($with_partitioning) if ($with_partitioning)
...@@ -142,10 +142,10 @@ $unique ...@@ -142,10 +142,10 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
#----------- PARTITION BY RANGE #----------- PARTITION BY RANGE
if ($with_partitioning) if ($with_partitioning)
...@@ -179,10 +179,10 @@ $unique ...@@ -179,10 +179,10 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
#----------- PARTITION BY RANGE -- SUBPARTITION BY HASH #----------- PARTITION BY RANGE -- SUBPARTITION BY HASH
if ($with_partitioning) if ($with_partitioning)
...@@ -211,10 +211,10 @@ $unique ...@@ -211,10 +211,10 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
#----------- PARTITION BY RANGE -- SUBPARTITION BY KEY #----------- PARTITION BY RANGE -- SUBPARTITION BY KEY
if ($with_partitioning) if ($with_partitioning)
...@@ -246,10 +246,10 @@ $unique ...@@ -246,10 +246,10 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
#----------- PARTITION BY LIST -- SUBPARTITION BY HASH #----------- PARTITION BY LIST -- SUBPARTITION BY HASH
if ($with_partitioning) if ($with_partitioning)
...@@ -298,10 +298,10 @@ $unique ...@@ -298,10 +298,10 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
#----------- PARTITION BY LIST -- SUBPARTITION BY KEY #----------- PARTITION BY LIST -- SUBPARTITION BY KEY
if ($with_partitioning) if ($with_partitioning)
...@@ -328,8 +328,8 @@ $unique ...@@ -328,8 +328,8 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
--source suite/partitions/include/partition_check_drop.inc --source suite/parts/inc/partition_check_drop.inc
let $with_directories= FALSE; let $with_directories= FALSE;
...@@ -50,7 +50,7 @@ $unique ...@@ -50,7 +50,7 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -65,7 +65,7 @@ $unique ...@@ -65,7 +65,7 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -88,7 +88,7 @@ $unique ...@@ -88,7 +88,7 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -112,7 +112,7 @@ $unique ...@@ -112,7 +112,7 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -135,7 +135,7 @@ $unique ...@@ -135,7 +135,7 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -161,7 +161,7 @@ $unique ...@@ -161,7 +161,7 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -184,7 +184,7 @@ $unique ...@@ -184,7 +184,7 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -207,6 +207,6 @@ $unique ...@@ -207,6 +207,6 @@ $unique
) )
$partitioning; $partitioning;
eval $insert_all; eval $insert_all;
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -84,13 +84,13 @@ eval insert into t3 values ($val2); ...@@ -84,13 +84,13 @@ eval insert into t3 values ($val2);
eval insert into t3 values ($val3); eval insert into t3 values ($val3);
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
eval load data infile '$MYSQL_TEST_DIR/suite/partitions/include/$infile' into table t4; eval load data infile '$MYSQL_TEST_DIR/suite/parts/inc/$infile' into table t4;
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
eval load data infile '$MYSQL_TEST_DIR/suite/partitions/include/$infile' into table t5; eval load data infile '$MYSQL_TEST_DIR/suite/parts/inc/$infile' into table t5;
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
eval load data infile '$MYSQL_TEST_DIR/suite/partitions/include/$infile' into table t6; eval load data infile '$MYSQL_TEST_DIR/suite/parts/inc/$infile' into table t6;
eval select $sqlfunc from t1 order by col1; eval select $sqlfunc from t1 order by col1;
...@@ -238,8 +238,8 @@ subpartition by hash($sqlfunc) subpartitions 5 ...@@ -238,8 +238,8 @@ subpartition by hash($sqlfunc) subpartitions 5
let $t4=t4; let $t4=t4;
let $t5=t5; let $t5=t5;
let $t6=t6; let $t6=t6;
--source suite/partitions/include/partition_supported_sql_funcs_delete.inc --source suite/parts/inc/part_supported_sql_funcs_delete.inc
# --source include/partition_supported_sql_funcs_delete.inc # --source include/part_supported_sql_funcs_delete.inc
let $t1=t11; let $t1=t11;
let $t2=t22; let $t2=t22;
...@@ -247,8 +247,8 @@ subpartition by hash($sqlfunc) subpartitions 5 ...@@ -247,8 +247,8 @@ subpartition by hash($sqlfunc) subpartitions 5
let $t4=t44; let $t4=t44;
let $t5=t55; let $t5=t55;
let $t6=t66; let $t6=t66;
--source suite/partitions/include/partition_supported_sql_funcs_delete.inc --source suite/parts/inc/part_supported_sql_funcs_delete.inc
# --source include/partition_supported_sql_funcs_delete.inc # --source include/part_supported_sql_funcs_delete.inc
--echo ------------------------- --echo -------------------------
--echo ---- some alter table end --echo ---- some alter table end
--echo ------------------------- --echo -------------------------
......
...@@ -106,17 +106,17 @@ let $unique_index= UNIQUE INDEX (f_int2); ...@@ -106,17 +106,17 @@ let $unique_index= UNIQUE INDEX (f_int2);
#----------- PARTITION BY HASH #----------- PARTITION BY HASH
let $partition_scheme= PARTITION BY HASH(f_int1) PARTITIONS 2; let $partition_scheme= PARTITION BY HASH(f_int1) PARTITIONS 2;
--source suite/partitions/include/partition_syntax_2.inc --source suite/parts/inc/partition_syntax_2.inc
# --source include/partition_syntax_2.inc # --source include/partition_syntax_2.inc
let $partition_scheme= PARTITION BY HASH(f_int1 + f_int2) PARTITIONS 2; let $partition_scheme= PARTITION BY HASH(f_int1 + f_int2) PARTITIONS 2;
--source suite/partitions/include/partition_syntax_2.inc --source suite/parts/inc/partition_syntax_2.inc
# --source include/partition_syntax_2.inc # --source include/partition_syntax_2.inc
#----------- PARTITION BY KEY #----------- PARTITION BY KEY
let $partition_scheme= PARTITION BY KEY(f_int1) PARTITIONS 2; let $partition_scheme= PARTITION BY KEY(f_int1) PARTITIONS 2;
--source suite/partitions/include/partition_syntax_2.inc --source suite/parts/inc/partition_syntax_2.inc
# --source include/partition_syntax_2.inc # --source include/partition_syntax_2.inc
let $partition_scheme= PARTITION BY KEY(f_int1,f_int2) PARTITIONS 2; let $partition_scheme= PARTITION BY KEY(f_int1,f_int2) PARTITIONS 2;
--source suite/partitions/include/partition_syntax_2.inc --source suite/parts/inc/partition_syntax_2.inc
# --source include/partition_syntax_2.inc # --source include/partition_syntax_2.inc
#----------- PARTITION BY LIST #----------- PARTITION BY LIST
let $partition_scheme= PARTITION BY LIST(MOD(f_int1,3)) let $partition_scheme= PARTITION BY LIST(MOD(f_int1,3))
...@@ -124,25 +124,25 @@ let $partition_scheme= PARTITION BY LIST(MOD(f_int1,3)) ...@@ -124,25 +124,25 @@ let $partition_scheme= PARTITION BY LIST(MOD(f_int1,3))
PARTITION part0 VALUES IN (0), PARTITION part0 VALUES IN (0),
PARTITION part1 VALUES IN (1), PARTITION part1 VALUES IN (1),
PARTITION part2 VALUES IN (2)); PARTITION part2 VALUES IN (2));
--source suite/partitions/include/partition_syntax_2.inc --source suite/parts/inc/partition_syntax_2.inc
# --source include/partition_syntax_2.inc # --source include/partition_syntax_2.inc
let $partition_scheme= PARTITION BY LIST(MOD(f_int1 + f_int2,3)) let $partition_scheme= PARTITION BY LIST(MOD(f_int1 + f_int2,3))
(PARTITION partN VALUES IN (NULL), (PARTITION partN VALUES IN (NULL),
PARTITION part0 VALUES IN (0), PARTITION part0 VALUES IN (0),
PARTITION part1 VALUES IN (1), PARTITION part1 VALUES IN (1),
PARTITION part2 VALUES IN (2)); PARTITION part2 VALUES IN (2));
--source suite/partitions/include/partition_syntax_2.inc --source suite/parts/inc/partition_syntax_2.inc
# --source include/partition_syntax_2.inc # --source include/partition_syntax_2.inc
#----------- PARTITION BY RANGE #----------- PARTITION BY RANGE
let $partition_scheme= PARTITION BY RANGE(f_int1) let $partition_scheme= PARTITION BY RANGE(f_int1)
(PARTITION part1 VALUES LESS THAN (1), (PARTITION part1 VALUES LESS THAN (1),
PARTITION part2 VALUES LESS THAN (2147483646)); PARTITION part2 VALUES LESS THAN (2147483646));
--source suite/partitions/include/partition_syntax_2.inc --source suite/parts/inc/partition_syntax_2.inc
# --source include/partition_syntax_2.inc # --source include/partition_syntax_2.inc
let $partition_scheme= PARTITION BY RANGE(f_int1 + f_int2) let $partition_scheme= PARTITION BY RANGE(f_int1 + f_int2)
(PARTITION part1 VALUES LESS THAN (1), (PARTITION part1 VALUES LESS THAN (1),
PARTITION part2 VALUES LESS THAN (2147483646)); PARTITION part2 VALUES LESS THAN (2147483646));
--source suite/partitions/include/partition_syntax_2.inc --source suite/parts/inc/partition_syntax_2.inc
# --source include/partition_syntax_2.inc # --source include/partition_syntax_2.inc
# #
...@@ -199,14 +199,14 @@ let $partition_scheme= PARTITION BY RANGE(f_int2) ...@@ -199,14 +199,14 @@ let $partition_scheme= PARTITION BY RANGE(f_int2)
SUBPARTITION BY HASH(f_int1) SUBPARTITIONS 3 SUBPARTITION BY HASH(f_int1) SUBPARTITIONS 3
(PARTITION part1 VALUES LESS THAN (1), (PARTITION part1 VALUES LESS THAN (1),
PARTITION part2 VALUES LESS THAN (2147483646)); PARTITION part2 VALUES LESS THAN (2147483646));
--source suite/partitions/include/partition_syntax_2.inc --source suite/parts/inc/partition_syntax_2.inc
# --source include/partition_syntax_2.inc # --source include/partition_syntax_2.inc
#----------- PARTITION BY RANGE -- SUBPARTITION BY KEY #----------- PARTITION BY RANGE -- SUBPARTITION BY KEY
let $partition_scheme= PARTITION BY RANGE(f_int2) let $partition_scheme= PARTITION BY RANGE(f_int2)
SUBPARTITION BY KEY(f_int1) SUBPARTITIONS 3 SUBPARTITION BY KEY(f_int1) SUBPARTITIONS 3
(PARTITION part1 VALUES LESS THAN (1), (PARTITION part1 VALUES LESS THAN (1),
PARTITION part2 VALUES LESS THAN (2147483646)); PARTITION part2 VALUES LESS THAN (2147483646));
--source suite/partitions/include/partition_syntax_2.inc --source suite/parts/inc/partition_syntax_2.inc
# --source include/partition_syntax_2.inc # --source include/partition_syntax_2.inc
#----------- PARTITION BY LIST -- SUBPARTITION BY HASH #----------- PARTITION BY LIST -- SUBPARTITION BY HASH
let $partition_scheme= PARTITION BY LIST(MOD(f_int2,3)) let $partition_scheme= PARTITION BY LIST(MOD(f_int2,3))
...@@ -215,7 +215,7 @@ SUBPARTITION BY HASH(f_int1) SUBPARTITIONS 2 ...@@ -215,7 +215,7 @@ SUBPARTITION BY HASH(f_int1) SUBPARTITIONS 2
PARTITION part0 VALUES IN (0), PARTITION part0 VALUES IN (0),
PARTITION part1 VALUES IN (1), PARTITION part1 VALUES IN (1),
PARTITION part2 VALUES IN (2)); PARTITION part2 VALUES IN (2));
--source suite/partitions/include/partition_syntax_2.inc --source suite/parts/inc/partition_syntax_2.inc
# --source include/partition_syntax_2.inc # --source include/partition_syntax_2.inc
#----------- PARTITION BY LIST -- SUBPARTITION BY KEY #----------- PARTITION BY LIST -- SUBPARTITION BY KEY
let $partition_scheme= PARTITION BY LIST(MOD(f_int2,3)) let $partition_scheme= PARTITION BY LIST(MOD(f_int2,3))
...@@ -224,7 +224,7 @@ SUBPARTITION BY KEY(f_int1) SUBPARTITIONS 2 ...@@ -224,7 +224,7 @@ SUBPARTITION BY KEY(f_int1) SUBPARTITIONS 2
PARTITION part0 VALUES IN (0), PARTITION part0 VALUES IN (0),
PARTITION part1 VALUES IN (1), PARTITION part1 VALUES IN (1),
PARTITION part2 VALUES IN (2)); PARTITION part2 VALUES IN (2));
--source suite/partitions/include/partition_syntax_2.inc --source suite/parts/inc/partition_syntax_2.inc
# --source include/partition_syntax_2.inc # --source include/partition_syntax_2.inc
--echo --echo
...@@ -358,7 +358,7 @@ $column_list ...@@ -358,7 +358,7 @@ $column_list
PARTITION BY LIST(MOD(f_int1,2)) PARTITION BY LIST(MOD(f_int1,2))
( PARTITION part1 VALUES IN (CAST(NULL AS SIGNED INTEGER)), ( PARTITION part1 VALUES IN (CAST(NULL AS SIGNED INTEGER)),
PARTITION part3 VALUES IN (1)); PARTITION part3 VALUES IN (1));
--source suite/partitions/include/partition_layout_check1.inc --source suite/parts/inc/partition_layout_check1.inc
# --source include/partition_layout_check1.inc # --source include/partition_layout_check1.inc
DROP TABLE t1; DROP TABLE t1;
--echo # 3.5.3 Reveal that IN (...NULL) is not mapped to IN(0) --echo # 3.5.3 Reveal that IN (...NULL) is not mapped to IN(0)
...@@ -371,7 +371,7 @@ PARTITION BY LIST(MOD(f_int1,2)) ...@@ -371,7 +371,7 @@ PARTITION BY LIST(MOD(f_int1,2))
( PARTITION part1 VALUES IN (CAST(NULL AS SIGNED INTEGER)), ( PARTITION part1 VALUES IN (CAST(NULL AS SIGNED INTEGER)),
PARTITION part2 VALUES IN (0), PARTITION part2 VALUES IN (0),
PARTITION part3 VALUES IN (1)); PARTITION part3 VALUES IN (1));
--source suite/partitions/include/partition_layout_check1.inc --source suite/parts/inc/partition_layout_check1.inc
# --source include/partition_layout_check1.inc # --source include/partition_layout_check1.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -394,7 +394,7 @@ eval CREATE TABLE t1 ( ...@@ -394,7 +394,7 @@ eval CREATE TABLE t1 (
$column_list $column_list
) )
PARTITION BY HASH(f_int1); PARTITION BY HASH(f_int1);
--source suite/partitions/include/partition_layout_check1.inc --source suite/parts/inc/partition_layout_check1.inc
# --source include/partition_layout_check1.inc # --source include/partition_layout_check1.inc
DROP TABLE t1; DROP TABLE t1;
--echo # 4.1.2 no partition number, named partitions --echo # 4.1.2 no partition number, named partitions
...@@ -402,7 +402,7 @@ eval CREATE TABLE t1 ( ...@@ -402,7 +402,7 @@ eval CREATE TABLE t1 (
$column_list $column_list
) )
PARTITION BY HASH(f_int1) (PARTITION part1, PARTITION part2); PARTITION BY HASH(f_int1) (PARTITION part1, PARTITION part2);
--source suite/partitions/include/partition_layout_check1.inc --source suite/parts/inc/partition_layout_check1.inc
# --source include/partition_layout_check1.inc # --source include/partition_layout_check1.inc
DROP TABLE t1; DROP TABLE t1;
# Attention: Several combinations are impossible # Attention: Several combinations are impossible
...@@ -469,7 +469,7 @@ eval $part01 $column_list $part02 $part1_Y $part2_N $part3_Y ; ...@@ -469,7 +469,7 @@ eval $part01 $column_list $part02 $part1_Y $part2_N $part3_Y ;
--error 1064 --error 1064
eval $part01 $column_list $part02 $part1_Y $part2_Y $part3_N ; eval $part01 $column_list $part02 $part1_Y $part2_Y $part3_N ;
eval $part01 $column_list $part02 $part1_Y $part2_Y $part3_Y ; eval $part01 $column_list $part02 $part1_Y $part2_Y $part3_Y ;
--source suite/partitions/include/partition_layout_check1.inc --source suite/parts/inc/partition_layout_check1.inc
# --source include/partition_layout_check1.inc # --source include/partition_layout_check1.inc
DROP TABLE t1; DROP TABLE t1;
...@@ -484,95 +484,95 @@ DROP TABLE IF EXISTS t1; ...@@ -484,95 +484,95 @@ DROP TABLE IF EXISTS t1;
# with the server response. # with the server response.
# (positive) number = 2 # (positive) number = 2
let $part_number= 2; let $part_number= 2;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (positive) special case number = 1 # (positive) special case number = 1
let $part_number= 1; let $part_number= 1;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative) 0 is non sense # (negative) 0 is non sense
let $part_number= 0; let $part_number= 0;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative) -1 is non sense # (negative) -1 is non sense
let $part_number= -1; let $part_number= -1;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative) 1000000 is too huge # (negative) 1000000 is too huge
let $part_number= 1000000; let $part_number= 1000000;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
--echo # 4.2.2 partition/subpartition numbers DECIMAL notation --echo # 4.2.2 partition/subpartition numbers DECIMAL notation
# (positive) number = 2.0 # (positive) number = 2.0
let $part_number= 2.0; let $part_number= 2.0;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative) -2.0 is non sense # (negative) -2.0 is non sense
let $part_number= -2.0; let $part_number= -2.0;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative) case number = 0.0 is non sense # (negative) case number = 0.0 is non sense
let $part_number= 0.0; let $part_number= 0.0;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
if ($fixed_bug15890) if ($fixed_bug15890)
{ {
# Bug#15890 Partitions: Strange interpretation of partition number # Bug#15890 Partitions: Strange interpretation of partition number
# (negative) number = 1.6 is non sense # (negative) number = 1.6 is non sense
let $part_number= 1.6; let $part_number= 1.6;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
} }
# (negative) number is too huge # (negative) number is too huge
let $part_number= 999999999999999999999999999999.999999999999999999999999999999; let $part_number= 999999999999999999999999999999.999999999999999999999999999999;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative) number is nearly zero # (negative) number is nearly zero
let $part_number= 0.000000000000000000000000000001; let $part_number= 0.000000000000000000000000000001;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
--echo # 4.2.3 partition/subpartition numbers FLOAT notation --echo # 4.2.3 partition/subpartition numbers FLOAT notation
##### FLOAT notation ##### FLOAT notation
# (positive) number = 2.0E+0 # (positive) number = 2.0E+0
let $part_number= 2.0E+0; let $part_number= 2.0E+0;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
if ($fixed_bug15890) if ($fixed_bug15890)
{ {
# Bug#15890 Partitions: Strange interpretation of partition number # Bug#15890 Partitions: Strange interpretation of partition number
# (positive) number = 0.2E+1 # (positive) number = 0.2E+1
let $part_number= 0.2E+1; let $part_number= 0.2E+1;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
} }
# (negative) -2.0E+0 is non sense # (negative) -2.0E+0 is non sense
let $part_number= -2.0E+0; let $part_number= -2.0E+0;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
if ($fixed_bug15890) if ($fixed_bug15890)
{ {
# Bug#15890 Partitions: Strange interpretation of partition number # Bug#15890 Partitions: Strange interpretation of partition number
# (negative) 0.16E+1 is non sense # (negative) 0.16E+1 is non sense
let $part_number= 0.16E+1; let $part_number= 0.16E+1;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
} }
# (negative) 0.0E+300 is zero # (negative) 0.0E+300 is zero
let $part_number= 0.0E+300; let $part_number= 0.0E+300;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
if ($fixed_bug15890) if ($fixed_bug15890)
{ {
# Bug#15890 Partitions: Strange interpretation of partition number # Bug#15890 Partitions: Strange interpretation of partition number
# (negative) 1E+300 is too huge # (negative) 1E+300 is too huge
let $part_number= 1E+300; let $part_number= 1E+300;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative) 1E-300 is nearly zero # (negative) 1E-300 is nearly zero
let $part_number= 1E-300; let $part_number= 1E-300;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
} }
...@@ -580,62 +580,62 @@ let $part_number= 1E-300; ...@@ -580,62 +580,62 @@ let $part_number= 1E-300;
##### STRING notation ##### STRING notation
# (negative?) case number = '2' # (negative?) case number = '2'
let $part_number= '2'; let $part_number= '2';
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative?) case number = '2.0' # (negative?) case number = '2.0'
let $part_number= '2.0'; let $part_number= '2.0';
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative?) case number = '0.2E+1' # (negative?) case number = '0.2E+1'
let $part_number= '0.2E+1'; let $part_number= '0.2E+1';
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative) Strings starts with digit, but 'A' follows # (negative) Strings starts with digit, but 'A' follows
let $part_number= '2A'; let $part_number= '2A';
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative) Strings starts with 'A', but digit follows # (negative) Strings starts with 'A', but digit follows
let $part_number= 'A2'; let $part_number= 'A2';
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative) empty string # (negative) empty string
let $part_number= ''; let $part_number= '';
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative) string without any digits # (negative) string without any digits
let $part_number= 'GARBAGE'; let $part_number= 'GARBAGE';
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
--echo # 4.2.5 partition/subpartition numbers other notations --echo # 4.2.5 partition/subpartition numbers other notations
# (negative) Strings starts with digit, but 'A' follows # (negative) Strings starts with digit, but 'A' follows
let $part_number= 2A; let $part_number= 2A;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative) Strings starts with 'A', but digit follows # (negative) Strings starts with 'A', but digit follows
let $part_number= A2; let $part_number= A2;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative) string without any digits # (negative) string without any digits
let $part_number= GARBAGE; let $part_number= GARBAGE;
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative?) double quotes # (negative?) double quotes
let $part_number= "2"; let $part_number= "2";
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative) Strings starts with digit, but 'A' follows # (negative) Strings starts with digit, but 'A' follows
let $part_number= "2A"; let $part_number= "2A";
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative) Strings starts with 'A', but digit follows # (negative) Strings starts with 'A', but digit follows
let $part_number= "A2"; let $part_number= "A2";
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
# (negative) string without any digits # (negative) string without any digits
let $part_number= "GARBAGE"; let $part_number= "GARBAGE";
--source suite/partitions/include/partition_syntax_1.inc --source suite/parts/inc/partition_syntax_1.inc
# --source include/partition_syntax_1.inc # --source include/partition_syntax_1.inc
--echo # 4.2.6 (negative) partition/subpartition numbers per @variables --echo # 4.2.6 (negative) partition/subpartition numbers per @variables
...@@ -664,7 +664,7 @@ eval CREATE TABLE t1 ( ...@@ -664,7 +664,7 @@ eval CREATE TABLE t1 (
$column_list $column_list
) )
PARTITION BY HASH(f_int1) PARTITIONS 2 ( PARTITION part1, PARTITION part2 ) ; PARTITION BY HASH(f_int1) PARTITIONS 2 ( PARTITION part1, PARTITION part2 ) ;
--source suite/partitions/include/partition_layout_check1.inc --source suite/parts/inc/partition_layout_check1.inc
# --source include/partition_layout_check1.inc # --source include/partition_layout_check1.inc
DROP TABLE t1; DROP TABLE t1;
eval CREATE TABLE t1 ( eval CREATE TABLE t1 (
...@@ -677,7 +677,7 @@ SUBPARTITION BY HASH(f_int1) SUBPARTITIONS 2 ...@@ -677,7 +677,7 @@ SUBPARTITION BY HASH(f_int1) SUBPARTITIONS 2
PARTITION part2 VALUES LESS THAN $MAX_VALUE PARTITION part2 VALUES LESS THAN $MAX_VALUE
(SUBPARTITION subpart21, SUBPARTITION subpart22) (SUBPARTITION subpart21, SUBPARTITION subpart22)
); );
--source suite/partitions/include/partition_layout_check1.inc --source suite/parts/inc/partition_layout_check1.inc
# --source include/partition_layout_check1.inc # --source include/partition_layout_check1.inc
DROP TABLE t1; DROP TABLE t1;
--echo # 4.3.2 (positive) number of partition/subpartition , --echo # 4.3.2 (positive) number of partition/subpartition ,
......
...@@ -47,7 +47,7 @@ if ($unexpected_error) ...@@ -47,7 +47,7 @@ if ($unexpected_error)
# If this operation was successfull, print layout + drop this table # If this operation was successfull, print layout + drop this table
if ($run) if ($run)
{ {
--source suite/partitions/include/partition_layout_check1.inc --source suite/parts/inc/partition_layout_check1.inc
# --source include/partition_layout_check1.inc # --source include/partition_layout_check1.inc
eval DROP TABLE t1; eval DROP TABLE t1;
} }
...@@ -85,7 +85,7 @@ if ($unexpected_error) ...@@ -85,7 +85,7 @@ if ($unexpected_error)
# If this operation was successfull, print layout + drop this table # If this operation was successfull, print layout + drop this table
if ($run) if ($run)
{ {
--source suite/partitions/include/partition_layout_check1.inc --source suite/parts/inc/partition_layout_check1.inc
# --source include/partition_layout_check1.inc # --source include/partition_layout_check1.inc
eval DROP TABLE t1; eval DROP TABLE t1;
} }
...@@ -37,7 +37,7 @@ if (`SELECT @@session.storage_engine IN('ndbcluster')`) ...@@ -37,7 +37,7 @@ if (`SELECT @@session.storage_engine IN('ndbcluster')`)
eval $insert_all; eval $insert_all;
if ($fixed_bug18735) if ($fixed_bug18735)
{ {
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
} }
DROP TABLE t1; DROP TABLE t1;
...@@ -49,7 +49,7 @@ if (`SELECT @@session.storage_engine IN('ndbcluster')`) ...@@ -49,7 +49,7 @@ if (`SELECT @@session.storage_engine IN('ndbcluster')`)
eval $insert_all; eval $insert_all;
if ($fixed_bug18735) if ($fixed_bug18735)
{ {
--source suite/partitions/include/partition_check.inc --source suite/parts/inc/partition_check.inc
# --source include/partition_check.inc # --source include/partition_check.inc
} }
DROP TABLE t1; DROP TABLE t1;
......
...@@ -57,6 +57,8 @@ Number of primary keys: 3 ...@@ -57,6 +57,8 @@ Number of primary keys: 3
Length of frm data: # Length of frm data: #
Row Checksum: 1 Row Checksum: 1
Row GCI: 1 Row GCI: 1
SingleUserMode: 0
ForceVarPart: 1
TableStatus: Retrieved TableStatus: Retrieved
-- Attributes -- -- Attributes --
a Int PRIMARY KEY AT=FIXED ST=MEMORY a Int PRIMARY KEY AT=FIXED ST=MEMORY
......
...@@ -55,9 +55,9 @@ insert into t2 values (17 ); ...@@ -55,9 +55,9 @@ insert into t2 values (17 );
insert into t3 values (5 ); insert into t3 values (5 );
insert into t3 values (13 ); insert into t3 values (13 );
insert into t3 values (17 ); insert into t3 values (17 );
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_int.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_int.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_int.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_int.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_int.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_int.inc' into table t6;
select abs(col1) from t1 order by col1; select abs(col1) from t1 order by col1;
abs(col1) abs(col1)
5 5
...@@ -1731,9 +1731,9 @@ insert into t2 values ('3'); ...@@ -1731,9 +1731,9 @@ insert into t2 values ('3');
insert into t3 values ('1'); insert into t3 values ('1');
insert into t3 values ('9'); insert into t3 values ('9');
insert into t3 values ('3'); insert into t3 values ('3');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_ch1.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_ch1.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_ch1.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_ch1.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_ch1.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_ch1.inc' into table t6;
select ascii(col1) from t1 order by col1; select ascii(col1) from t1 order by col1;
ascii(col1) ascii(col1)
49 49
...@@ -2231,9 +2231,9 @@ insert into t2 values (17.987); ...@@ -2231,9 +2231,9 @@ insert into t2 values (17.987);
insert into t3 values (5.1230); insert into t3 values (5.1230);
insert into t3 values (13.345); insert into t3 values (13.345);
insert into t3 values (17.987); insert into t3 values (17.987);
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t6;
select cast(ceiling(col1) as signed integer) from t1 order by col1; select cast(ceiling(col1) as signed integer) from t1 order by col1;
cast(ceiling(col1) as signed integer) cast(ceiling(col1) as signed integer)
6 6
...@@ -2729,9 +2729,9 @@ insert into t2 values (17.987); ...@@ -2729,9 +2729,9 @@ insert into t2 values (17.987);
insert into t3 values (5.1230); insert into t3 values (5.1230);
insert into t3 values (13.345); insert into t3 values (13.345);
insert into t3 values (17.987); insert into t3 values (17.987);
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t6;
select cast(floor(col1) as signed) from t1 order by col1; select cast(floor(col1) as signed) from t1 order by col1;
cast(floor(col1) as signed) cast(floor(col1) as signed)
5 5
...@@ -3227,9 +3227,9 @@ insert into t2 values (17); ...@@ -3227,9 +3227,9 @@ insert into t2 values (17);
insert into t3 values (5.0000); insert into t3 values (5.0000);
insert into t3 values (19); insert into t3 values (19);
insert into t3 values (17); insert into t3 values (17);
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t6;
select cast(mod(col1,10) as signed) from t1 order by col1; select cast(mod(col1,10) as signed) from t1 order by col1;
cast(mod(col1,10) as signed) cast(mod(col1,10) as signed)
5 5
...@@ -3727,9 +3727,9 @@ insert into t2 values ('3'); ...@@ -3727,9 +3727,9 @@ insert into t2 values ('3');
insert into t3 values ('1'); insert into t3 values ('1');
insert into t3 values ('9'); insert into t3 values ('9');
insert into t3 values ('3'); insert into t3 values ('3');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_ch1.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_ch1.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_ch1.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_ch1.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_ch1.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_ch1.inc' into table t6;
select ord(col1) from t1 order by col1; select ord(col1) from t1 order by col1;
ord(col1) ord(col1)
49 49
...@@ -4225,9 +4225,9 @@ insert into t2 values ('2006-01-25'); ...@@ -4225,9 +4225,9 @@ insert into t2 values ('2006-01-25');
insert into t3 values ('2006-02-03'); insert into t3 values ('2006-02-03');
insert into t3 values ('2006-01-17'); insert into t3 values ('2006-01-17');
insert into t3 values ('2006-01-25'); insert into t3 values ('2006-01-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select day(col1) from t1 order by col1; select day(col1) from t1 order by col1;
day(col1) day(col1)
17 17
...@@ -4721,9 +4721,9 @@ insert into t2 values ('2006-01-25'); ...@@ -4721,9 +4721,9 @@ insert into t2 values ('2006-01-25');
insert into t3 values ('2006-02-03'); insert into t3 values ('2006-02-03');
insert into t3 values ('2006-01-17'); insert into t3 values ('2006-01-17');
insert into t3 values ('2006-01-25'); insert into t3 values ('2006-01-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select dayofmonth(col1) from t1 order by col1; select dayofmonth(col1) from t1 order by col1;
dayofmonth(col1) dayofmonth(col1)
17 17
...@@ -5217,9 +5217,9 @@ insert into t2 values ('2006-01-25'); ...@@ -5217,9 +5217,9 @@ insert into t2 values ('2006-01-25');
insert into t3 values ('2006-01-03'); insert into t3 values ('2006-01-03');
insert into t3 values ('2006-02-17'); insert into t3 values ('2006-02-17');
insert into t3 values ('2006-01-25'); insert into t3 values ('2006-01-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select dayofweek(col1) from t1 order by col1; select dayofweek(col1) from t1 order by col1;
dayofweek(col1) dayofweek(col1)
3 3
...@@ -5725,9 +5725,9 @@ insert into t2 values ('2006-02-25'); ...@@ -5725,9 +5725,9 @@ insert into t2 values ('2006-02-25');
insert into t3 values ('2006-01-03'); insert into t3 values ('2006-01-03');
insert into t3 values ('2006-01-17'); insert into t3 values ('2006-01-17');
insert into t3 values ('2006-02-25'); insert into t3 values ('2006-02-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select dayofyear(col1) from t1 order by col1; select dayofyear(col1) from t1 order by col1;
dayofyear(col1) dayofyear(col1)
3 3
...@@ -6223,9 +6223,9 @@ insert into t2 values ('2006-02-25'); ...@@ -6223,9 +6223,9 @@ insert into t2 values ('2006-02-25');
insert into t3 values ('2006-01-03'); insert into t3 values ('2006-01-03');
insert into t3 values ('2006-01-17'); insert into t3 values ('2006-01-17');
insert into t3 values ('2006-02-25'); insert into t3 values ('2006-02-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select dayofyear(col1) from t1 order by col1; select dayofyear(col1) from t1 order by col1;
dayofyear(col1) dayofyear(col1)
3 3
...@@ -6721,9 +6721,9 @@ insert into t2 values ('2006-01-25'); ...@@ -6721,9 +6721,9 @@ insert into t2 values ('2006-01-25');
insert into t3 values ('2006-01-03'); insert into t3 values ('2006-01-03');
insert into t3 values ('2006-02-17'); insert into t3 values ('2006-02-17');
insert into t3 values ('2006-01-25'); insert into t3 values ('2006-01-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select extract(month from col1) from t1 order by col1; select extract(month from col1) from t1 order by col1;
extract(month from col1) extract(month from col1)
1 1
...@@ -7219,9 +7219,9 @@ insert into t2 values ('21:59'); ...@@ -7219,9 +7219,9 @@ insert into t2 values ('21:59');
insert into t3 values ('09:09'); insert into t3 values ('09:09');
insert into t3 values ('14:30'); insert into t3 values ('14:30');
insert into t3 values ('21:59'); insert into t3 values ('21:59');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t6;
select hour(col1) from t1 order by col1; select hour(col1) from t1 order by col1;
hour(col1) hour(col1)
9 9
...@@ -7723,9 +7723,9 @@ insert into t2 values ('00:59:22.000024'); ...@@ -7723,9 +7723,9 @@ insert into t2 values ('00:59:22.000024');
insert into t3 values ('09:09:15.000002'); insert into t3 values ('09:09:15.000002');
insert into t3 values ('04:30:01.000018'); insert into t3 values ('04:30:01.000018');
insert into t3 values ('00:59:22.000024'); insert into t3 values ('00:59:22.000024');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t6;
select microsecond(col1) from t1 order by col1; select microsecond(col1) from t1 order by col1;
microsecond(col1) microsecond(col1)
0 0
...@@ -8213,9 +8213,9 @@ insert into t2 values ('21:59:22'); ...@@ -8213,9 +8213,9 @@ insert into t2 values ('21:59:22');
insert into t3 values ('09:09:15'); insert into t3 values ('09:09:15');
insert into t3 values ('14:30:45'); insert into t3 values ('14:30:45');
insert into t3 values ('21:59:22'); insert into t3 values ('21:59:22');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t6;
select minute(col1) from t1 order by col1; select minute(col1) from t1 order by col1;
minute(col1) minute(col1)
9 9
...@@ -8723,9 +8723,9 @@ insert into t2 values ('21:59:22'); ...@@ -8723,9 +8723,9 @@ insert into t2 values ('21:59:22');
insert into t3 values ('09:09:09'); insert into t3 values ('09:09:09');
insert into t3 values ('14:30:20'); insert into t3 values ('14:30:20');
insert into t3 values ('21:59:22'); insert into t3 values ('21:59:22');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t6;
select second(col1) from t1 order by col1; select second(col1) from t1 order by col1;
second(col1) second(col1)
9 9
...@@ -9233,9 +9233,9 @@ insert into t2 values ('21:59:22'); ...@@ -9233,9 +9233,9 @@ insert into t2 values ('21:59:22');
insert into t3 values ('09:09:09'); insert into t3 values ('09:09:09');
insert into t3 values ('14:30:20'); insert into t3 values ('14:30:20');
insert into t3 values ('21:59:22'); insert into t3 values ('21:59:22');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t6;
select second(col1) from t1 order by col1; select second(col1) from t1 order by col1;
second(col1) second(col1)
9 9
...@@ -9743,9 +9743,9 @@ insert into t2 values ('2006-05-25'); ...@@ -9743,9 +9743,9 @@ insert into t2 values ('2006-05-25');
insert into t3 values ('2006-01-03'); insert into t3 values ('2006-01-03');
insert into t3 values ('2006-12-17'); insert into t3 values ('2006-12-17');
insert into t3 values ('2006-05-25'); insert into t3 values ('2006-05-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select month(col1) from t1 order by col1; select month(col1) from t1 order by col1;
month(col1) month(col1)
1 1
...@@ -10247,9 +10247,9 @@ insert into t2 values ('2006-09-25'); ...@@ -10247,9 +10247,9 @@ insert into t2 values ('2006-09-25');
insert into t3 values ('2006-01-03'); insert into t3 values ('2006-01-03');
insert into t3 values ('2006-12-17'); insert into t3 values ('2006-12-17');
insert into t3 values ('2006-09-25'); insert into t3 values ('2006-09-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select quarter(col1) from t1 order by col1; select quarter(col1) from t1 order by col1;
quarter(col1) quarter(col1)
1 1
...@@ -10749,9 +10749,9 @@ insert into t2 values ('21:59:22'); ...@@ -10749,9 +10749,9 @@ insert into t2 values ('21:59:22');
insert into t3 values ('09:09:15'); insert into t3 values ('09:09:15');
insert into t3 values ('14:30:45'); insert into t3 values ('14:30:45');
insert into t3 values ('21:59:22'); insert into t3 values ('21:59:22');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t6;
select time_to_sec(col1)-(time_to_sec(col1)-20) from t1 order by col1; select time_to_sec(col1)-(time_to_sec(col1)-20) from t1 order by col1;
time_to_sec(col1)-(time_to_sec(col1)-20) time_to_sec(col1)-(time_to_sec(col1)-20)
20 20
...@@ -11257,9 +11257,9 @@ insert into t2 values ('2006-01-25'); ...@@ -11257,9 +11257,9 @@ insert into t2 values ('2006-01-25');
insert into t3 values ('2006-02-03'); insert into t3 values ('2006-02-03');
insert into t3 values ('2006-01-17'); insert into t3 values ('2006-01-17');
insert into t3 values ('2006-01-25'); insert into t3 values ('2006-01-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select to_days(col1)-to_days('2006-01-01') from t1 order by col1; select to_days(col1)-to_days('2006-01-01') from t1 order by col1;
to_days(col1)-to_days('2006-01-01') to_days(col1)-to_days('2006-01-01')
16 16
...@@ -11757,9 +11757,9 @@ insert into t2 values ('2006-05-25'); ...@@ -11757,9 +11757,9 @@ insert into t2 values ('2006-05-25');
insert into t3 values ('2006-12-03'); insert into t3 values ('2006-12-03');
insert into t3 values ('2006-11-17'); insert into t3 values ('2006-11-17');
insert into t3 values ('2006-05-25'); insert into t3 values ('2006-05-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select weekday(col1) from t1 order by col1; select weekday(col1) from t1 order by col1;
weekday(col1) weekday(col1)
4 4
...@@ -12257,9 +12257,9 @@ insert into t2 values ('2006-05-25'); ...@@ -12257,9 +12257,9 @@ insert into t2 values ('2006-05-25');
insert into t3 values ('2006-01-03'); insert into t3 values ('2006-01-03');
insert into t3 values ('2006-03-17'); insert into t3 values ('2006-03-17');
insert into t3 values ('2006-05-25'); insert into t3 values ('2006-05-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select weekofyear(col1) from t1 order by col1; select weekofyear(col1) from t1 order by col1;
weekofyear(col1) weekofyear(col1)
1 1
...@@ -12765,9 +12765,9 @@ insert into t2 values ('2004-05-25'); ...@@ -12765,9 +12765,9 @@ insert into t2 values ('2004-05-25');
insert into t3 values ('1996-01-03'); insert into t3 values ('1996-01-03');
insert into t3 values ('2000-02-17'); insert into t3 values ('2000-02-17');
insert into t3 values ('2004-05-25'); insert into t3 values ('2004-05-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select year(col1)-1990 from t1 order by col1; select year(col1)-1990 from t1 order by col1;
year(col1)-1990 year(col1)-1990
6 6
...@@ -13269,9 +13269,9 @@ insert into t2 values ('2006-03-25'); ...@@ -13269,9 +13269,9 @@ insert into t2 values ('2006-03-25');
insert into t3 values ('2006-01-03'); insert into t3 values ('2006-01-03');
insert into t3 values ('2006-08-17'); insert into t3 values ('2006-08-17');
insert into t3 values ('2006-03-25'); insert into t3 values ('2006-03-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select yearweek(col1)-200600 from t1 order by col1; select yearweek(col1)-200600 from t1 order by col1;
yearweek(col1)-200600 yearweek(col1)-200600
1 1
......
...@@ -55,9 +55,9 @@ insert into t2 values (17 ); ...@@ -55,9 +55,9 @@ insert into t2 values (17 );
insert into t3 values (5 ); insert into t3 values (5 );
insert into t3 values (13 ); insert into t3 values (13 );
insert into t3 values (17 ); insert into t3 values (17 );
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_int.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_int.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_int.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_int.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_int.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_int.inc' into table t6;
select abs(col1) from t1 order by col1; select abs(col1) from t1 order by col1;
abs(col1) abs(col1)
5 5
...@@ -1731,9 +1731,9 @@ insert into t2 values ('3'); ...@@ -1731,9 +1731,9 @@ insert into t2 values ('3');
insert into t3 values ('1'); insert into t3 values ('1');
insert into t3 values ('9'); insert into t3 values ('9');
insert into t3 values ('3'); insert into t3 values ('3');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_ch1.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_ch1.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_ch1.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_ch1.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_ch1.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_ch1.inc' into table t6;
select ascii(col1) from t1 order by col1; select ascii(col1) from t1 order by col1;
ascii(col1) ascii(col1)
49 49
...@@ -2231,9 +2231,9 @@ insert into t2 values (17.987); ...@@ -2231,9 +2231,9 @@ insert into t2 values (17.987);
insert into t3 values (5.1230); insert into t3 values (5.1230);
insert into t3 values (13.345); insert into t3 values (13.345);
insert into t3 values (17.987); insert into t3 values (17.987);
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t6;
select cast(ceiling(col1) as signed integer) from t1 order by col1; select cast(ceiling(col1) as signed integer) from t1 order by col1;
cast(ceiling(col1) as signed integer) cast(ceiling(col1) as signed integer)
6 6
...@@ -2729,9 +2729,9 @@ insert into t2 values (17.987); ...@@ -2729,9 +2729,9 @@ insert into t2 values (17.987);
insert into t3 values (5.1230); insert into t3 values (5.1230);
insert into t3 values (13.345); insert into t3 values (13.345);
insert into t3 values (17.987); insert into t3 values (17.987);
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t6;
select cast(floor(col1) as signed) from t1 order by col1; select cast(floor(col1) as signed) from t1 order by col1;
cast(floor(col1) as signed) cast(floor(col1) as signed)
5 5
...@@ -3227,9 +3227,9 @@ insert into t2 values (17); ...@@ -3227,9 +3227,9 @@ insert into t2 values (17);
insert into t3 values (5.0000); insert into t3 values (5.0000);
insert into t3 values (19); insert into t3 values (19);
insert into t3 values (17); insert into t3 values (17);
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_float.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_float.inc' into table t6;
select cast(mod(col1,10) as signed) from t1 order by col1; select cast(mod(col1,10) as signed) from t1 order by col1;
cast(mod(col1,10) as signed) cast(mod(col1,10) as signed)
5 5
...@@ -3727,9 +3727,9 @@ insert into t2 values ('3'); ...@@ -3727,9 +3727,9 @@ insert into t2 values ('3');
insert into t3 values ('1'); insert into t3 values ('1');
insert into t3 values ('9'); insert into t3 values ('9');
insert into t3 values ('3'); insert into t3 values ('3');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_ch1.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_ch1.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_ch1.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_ch1.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_ch1.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_ch1.inc' into table t6;
select ord(col1) from t1 order by col1; select ord(col1) from t1 order by col1;
ord(col1) ord(col1)
49 49
...@@ -4225,9 +4225,9 @@ insert into t2 values ('2006-01-25'); ...@@ -4225,9 +4225,9 @@ insert into t2 values ('2006-01-25');
insert into t3 values ('2006-02-03'); insert into t3 values ('2006-02-03');
insert into t3 values ('2006-01-17'); insert into t3 values ('2006-01-17');
insert into t3 values ('2006-01-25'); insert into t3 values ('2006-01-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select day(col1) from t1 order by col1; select day(col1) from t1 order by col1;
day(col1) day(col1)
17 17
...@@ -4721,9 +4721,9 @@ insert into t2 values ('2006-01-25'); ...@@ -4721,9 +4721,9 @@ insert into t2 values ('2006-01-25');
insert into t3 values ('2006-02-03'); insert into t3 values ('2006-02-03');
insert into t3 values ('2006-01-17'); insert into t3 values ('2006-01-17');
insert into t3 values ('2006-01-25'); insert into t3 values ('2006-01-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select dayofmonth(col1) from t1 order by col1; select dayofmonth(col1) from t1 order by col1;
dayofmonth(col1) dayofmonth(col1)
17 17
...@@ -5217,9 +5217,9 @@ insert into t2 values ('2006-01-25'); ...@@ -5217,9 +5217,9 @@ insert into t2 values ('2006-01-25');
insert into t3 values ('2006-01-03'); insert into t3 values ('2006-01-03');
insert into t3 values ('2006-02-17'); insert into t3 values ('2006-02-17');
insert into t3 values ('2006-01-25'); insert into t3 values ('2006-01-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select dayofweek(col1) from t1 order by col1; select dayofweek(col1) from t1 order by col1;
dayofweek(col1) dayofweek(col1)
3 3
...@@ -5725,9 +5725,9 @@ insert into t2 values ('2006-02-25'); ...@@ -5725,9 +5725,9 @@ insert into t2 values ('2006-02-25');
insert into t3 values ('2006-01-03'); insert into t3 values ('2006-01-03');
insert into t3 values ('2006-01-17'); insert into t3 values ('2006-01-17');
insert into t3 values ('2006-02-25'); insert into t3 values ('2006-02-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select dayofyear(col1) from t1 order by col1; select dayofyear(col1) from t1 order by col1;
dayofyear(col1) dayofyear(col1)
3 3
...@@ -6223,9 +6223,9 @@ insert into t2 values ('2006-02-25'); ...@@ -6223,9 +6223,9 @@ insert into t2 values ('2006-02-25');
insert into t3 values ('2006-01-03'); insert into t3 values ('2006-01-03');
insert into t3 values ('2006-01-17'); insert into t3 values ('2006-01-17');
insert into t3 values ('2006-02-25'); insert into t3 values ('2006-02-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select dayofyear(col1) from t1 order by col1; select dayofyear(col1) from t1 order by col1;
dayofyear(col1) dayofyear(col1)
3 3
...@@ -6721,9 +6721,9 @@ insert into t2 values ('2006-01-25'); ...@@ -6721,9 +6721,9 @@ insert into t2 values ('2006-01-25');
insert into t3 values ('2006-01-03'); insert into t3 values ('2006-01-03');
insert into t3 values ('2006-02-17'); insert into t3 values ('2006-02-17');
insert into t3 values ('2006-01-25'); insert into t3 values ('2006-01-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select extract(month from col1) from t1 order by col1; select extract(month from col1) from t1 order by col1;
extract(month from col1) extract(month from col1)
1 1
...@@ -7219,9 +7219,9 @@ insert into t2 values ('21:59'); ...@@ -7219,9 +7219,9 @@ insert into t2 values ('21:59');
insert into t3 values ('09:09'); insert into t3 values ('09:09');
insert into t3 values ('14:30'); insert into t3 values ('14:30');
insert into t3 values ('21:59'); insert into t3 values ('21:59');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t6;
select hour(col1) from t1 order by col1; select hour(col1) from t1 order by col1;
hour(col1) hour(col1)
9 9
...@@ -7723,9 +7723,9 @@ insert into t2 values ('00:59:22.000024'); ...@@ -7723,9 +7723,9 @@ insert into t2 values ('00:59:22.000024');
insert into t3 values ('09:09:15.000002'); insert into t3 values ('09:09:15.000002');
insert into t3 values ('04:30:01.000018'); insert into t3 values ('04:30:01.000018');
insert into t3 values ('00:59:22.000024'); insert into t3 values ('00:59:22.000024');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t6;
select microsecond(col1) from t1 order by col1; select microsecond(col1) from t1 order by col1;
microsecond(col1) microsecond(col1)
0 0
...@@ -8213,9 +8213,9 @@ insert into t2 values ('21:59:22'); ...@@ -8213,9 +8213,9 @@ insert into t2 values ('21:59:22');
insert into t3 values ('09:09:15'); insert into t3 values ('09:09:15');
insert into t3 values ('14:30:45'); insert into t3 values ('14:30:45');
insert into t3 values ('21:59:22'); insert into t3 values ('21:59:22');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t6;
select minute(col1) from t1 order by col1; select minute(col1) from t1 order by col1;
minute(col1) minute(col1)
9 9
...@@ -8723,9 +8723,9 @@ insert into t2 values ('21:59:22'); ...@@ -8723,9 +8723,9 @@ insert into t2 values ('21:59:22');
insert into t3 values ('09:09:09'); insert into t3 values ('09:09:09');
insert into t3 values ('14:30:20'); insert into t3 values ('14:30:20');
insert into t3 values ('21:59:22'); insert into t3 values ('21:59:22');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t6;
select second(col1) from t1 order by col1; select second(col1) from t1 order by col1;
second(col1) second(col1)
9 9
...@@ -9233,9 +9233,9 @@ insert into t2 values ('21:59:22'); ...@@ -9233,9 +9233,9 @@ insert into t2 values ('21:59:22');
insert into t3 values ('09:09:09'); insert into t3 values ('09:09:09');
insert into t3 values ('14:30:20'); insert into t3 values ('14:30:20');
insert into t3 values ('21:59:22'); insert into t3 values ('21:59:22');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t6;
select second(col1) from t1 order by col1; select second(col1) from t1 order by col1;
second(col1) second(col1)
9 9
...@@ -9743,9 +9743,9 @@ insert into t2 values ('2006-05-25'); ...@@ -9743,9 +9743,9 @@ insert into t2 values ('2006-05-25');
insert into t3 values ('2006-01-03'); insert into t3 values ('2006-01-03');
insert into t3 values ('2006-12-17'); insert into t3 values ('2006-12-17');
insert into t3 values ('2006-05-25'); insert into t3 values ('2006-05-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select month(col1) from t1 order by col1; select month(col1) from t1 order by col1;
month(col1) month(col1)
1 1
...@@ -10247,9 +10247,9 @@ insert into t2 values ('2006-09-25'); ...@@ -10247,9 +10247,9 @@ insert into t2 values ('2006-09-25');
insert into t3 values ('2006-01-03'); insert into t3 values ('2006-01-03');
insert into t3 values ('2006-12-17'); insert into t3 values ('2006-12-17');
insert into t3 values ('2006-09-25'); insert into t3 values ('2006-09-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select quarter(col1) from t1 order by col1; select quarter(col1) from t1 order by col1;
quarter(col1) quarter(col1)
1 1
...@@ -10749,9 +10749,9 @@ insert into t2 values ('21:59:22'); ...@@ -10749,9 +10749,9 @@ insert into t2 values ('21:59:22');
insert into t3 values ('09:09:15'); insert into t3 values ('09:09:15');
insert into t3 values ('14:30:45'); insert into t3 values ('14:30:45');
insert into t3 values ('21:59:22'); insert into t3 values ('21:59:22');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_time.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_time.inc' into table t6;
select time_to_sec(col1)-(time_to_sec(col1)-20) from t1 order by col1; select time_to_sec(col1)-(time_to_sec(col1)-20) from t1 order by col1;
time_to_sec(col1)-(time_to_sec(col1)-20) time_to_sec(col1)-(time_to_sec(col1)-20)
20 20
...@@ -11257,9 +11257,9 @@ insert into t2 values ('2006-01-25'); ...@@ -11257,9 +11257,9 @@ insert into t2 values ('2006-01-25');
insert into t3 values ('2006-02-03'); insert into t3 values ('2006-02-03');
insert into t3 values ('2006-01-17'); insert into t3 values ('2006-01-17');
insert into t3 values ('2006-01-25'); insert into t3 values ('2006-01-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select to_days(col1)-to_days('2006-01-01') from t1 order by col1; select to_days(col1)-to_days('2006-01-01') from t1 order by col1;
to_days(col1)-to_days('2006-01-01') to_days(col1)-to_days('2006-01-01')
16 16
...@@ -11757,9 +11757,9 @@ insert into t2 values ('2006-05-25'); ...@@ -11757,9 +11757,9 @@ insert into t2 values ('2006-05-25');
insert into t3 values ('2006-12-03'); insert into t3 values ('2006-12-03');
insert into t3 values ('2006-11-17'); insert into t3 values ('2006-11-17');
insert into t3 values ('2006-05-25'); insert into t3 values ('2006-05-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select weekday(col1) from t1 order by col1; select weekday(col1) from t1 order by col1;
weekday(col1) weekday(col1)
4 4
...@@ -12257,9 +12257,9 @@ insert into t2 values ('2006-05-25'); ...@@ -12257,9 +12257,9 @@ insert into t2 values ('2006-05-25');
insert into t3 values ('2006-01-03'); insert into t3 values ('2006-01-03');
insert into t3 values ('2006-03-17'); insert into t3 values ('2006-03-17');
insert into t3 values ('2006-05-25'); insert into t3 values ('2006-05-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select weekofyear(col1) from t1 order by col1; select weekofyear(col1) from t1 order by col1;
weekofyear(col1) weekofyear(col1)
1 1
...@@ -12765,9 +12765,9 @@ insert into t2 values ('2004-05-25'); ...@@ -12765,9 +12765,9 @@ insert into t2 values ('2004-05-25');
insert into t3 values ('1996-01-03'); insert into t3 values ('1996-01-03');
insert into t3 values ('2000-02-17'); insert into t3 values ('2000-02-17');
insert into t3 values ('2004-05-25'); insert into t3 values ('2004-05-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select year(col1)-1990 from t1 order by col1; select year(col1)-1990 from t1 order by col1;
year(col1)-1990 year(col1)-1990
6 6
...@@ -13269,9 +13269,9 @@ insert into t2 values ('2006-03-25'); ...@@ -13269,9 +13269,9 @@ insert into t2 values ('2006-03-25');
insert into t3 values ('2006-01-03'); insert into t3 values ('2006-01-03');
insert into t3 values ('2006-08-17'); insert into t3 values ('2006-08-17');
insert into t3 values ('2006-03-25'); insert into t3 values ('2006-03-25');
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t4; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t4;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t5; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t5;
load data infile 'MYSQL_TEST_DIR/suite/partitions/include/partition_supported_sql_funcs_int_date.in' into table t6; load data infile 'MYSQL_TEST_DIR/suite/parts/inc/part_supported_sql_funcs_int_date.inc' into table t6;
select yearweek(col1)-200600 from t1 order by col1; select yearweek(col1)-200600 from t1 order by col1;
yearweek(col1)-200600 yearweek(col1)-200600
1 1
......
...@@ -39,6 +39,6 @@ let $debug= 0; ...@@ -39,6 +39,6 @@ let $debug= 0;
let $engine= 'INNODB'; let $engine= 'INNODB';
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
--source suite/partitions/include/partition_blocked_sql_funcs_main.inc --source suite/parts/inc/part_blocked_sql_funcs_main.inc
# --source include/partition_blocked_sql_funcs_main.inc # --source inc/part_blocked_sql_funcs_main.inc
...@@ -38,6 +38,6 @@ let $debug= 0; ...@@ -38,6 +38,6 @@ let $debug= 0;
let $engine= 'MYISAM'; let $engine= 'MYISAM';
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
--source suite/partitions/include/partition_blocked_sql_funcs_main.inc --source suite/parts/inc/part_blocked_sql_funcs_main.inc
# --source include/partition_blocked_sql_funcs_main.inc # --source inc/part_blocked_sql_funcs_main.inc
################################################################################ ################################################################################
# t/partition_supported_sql_funcs_innodb.test # # t/part_supported_sql_funcs_innodb.test #
# # # #
# Purpose: # # Purpose: #
# Tests which SQL functions are allowed in partinioning clauses with # # Tests which SQL functions are allowed in partinioning clauses with #
...@@ -37,6 +37,6 @@ let $do_long_tests= 1; ...@@ -37,6 +37,6 @@ let $do_long_tests= 1;
let $engine= 'INNODB'; let $engine= 'INNODB';
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
--source suite/partitions/include/partition_supported_sql_funcs_main.inc --source suite/parts/inc/part_supported_sql_funcs_main.inc
# --source include/partition_supported_sql_funcs_main.inc # --source inc/part_supported_sql_funcs_main.inc
################################################################################ ################################################################################
# t/partition_supported_sql_funcs_myisam.test # # t/part_supported_sql_funcs_myisam.test #
# # # #
# Purpose: # # Purpose: #
# Tests which SQL functions are allowed in partinioning clauses with # # Tests which SQL functions are allowed in partinioning clauses with #
...@@ -39,6 +39,6 @@ let $do_long_tests= 1; ...@@ -39,6 +39,6 @@ let $do_long_tests= 1;
let $engine= 'MYISAM'; let $engine= 'MYISAM';
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
--source suite/partitions/include/partition_supported_sql_funcs_main.inc --source suite/parts/inc/part_supported_sql_funcs_main.inc
# --source include/partition_supported_sql_funcs_main.inc # --source inc/part_supported_sql_funcs_main.inc
################################################################################ ################################################################################
# t/partition_supported_sql_funcs_myisam.test # # t/part_supported_sql_funcs_myisam.test #
# # # #
# Purpose: # # Purpose: #
# Tests which SQL functions are allowed in partinioning clauses with # # Tests which SQL functions are allowed in partinioning clauses with #
...@@ -35,6 +35,6 @@ let $do_long_tests= 1; ...@@ -35,6 +35,6 @@ let $do_long_tests= 1;
let $engine= 'NDB'; let $engine= 'NDB';
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
--source suite/partitions/include/partition_supported_sql_funcs_main.inc --source suite/parts/inc/part_supported_sql_funcs_main.inc
# --source include/partition_supported_sql_funcs_main.inc # --source inc/part_supported_sql_funcs_main.inc
...@@ -63,21 +63,21 @@ let $do_pk_tests= 1; ...@@ -63,21 +63,21 @@ let $do_pk_tests= 1;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_alter1.inc --source suite/parts/inc/partition_alter1.inc
# --source include/partition_alter1.inc # --source inc/partition_alter1.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -62,21 +62,21 @@ let $do_pk_tests= 0; ...@@ -62,21 +62,21 @@ let $do_pk_tests= 0;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_alter1.inc --source suite/parts/inc/partition_alter1.inc
# --source include/partition_alter1.inc # --source inc/partition_alter1.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -66,8 +66,8 @@ let $do_pk_tests= 1; ...@@ -66,8 +66,8 @@ let $do_pk_tests= 1;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# Bug#18735: Partitions: NDB, UNIQUE INDEX, UPDATE, strange server response # Bug#18735: Partitions: NDB, UNIQUE INDEX, UPDATE, strange server response
...@@ -75,13 +75,13 @@ let $fixed_bug18735= 0; ...@@ -75,13 +75,13 @@ let $fixed_bug18735= 0;
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_alter1.inc --source suite/parts/inc/partition_alter1.inc
# --source include/partition_alter1.inc # --source inc/partition_alter1.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -63,21 +63,21 @@ let $do_pk_tests= 1; ...@@ -63,21 +63,21 @@ let $do_pk_tests= 1;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_alter2.inc --source suite/parts/inc/partition_alter2.inc
# --source include/partition_alter2.inc # --source inc/partition_alter2.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -62,21 +62,21 @@ let $do_pk_tests= 0; ...@@ -62,21 +62,21 @@ let $do_pk_tests= 0;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_alter2.inc --source suite/parts/inc/partition_alter2.inc
# --source include/partition_alter2.inc # --source inc/partition_alter2.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -67,21 +67,21 @@ let $do_pk_tests= 1; ...@@ -67,21 +67,21 @@ let $do_pk_tests= 1;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_alter2.inc --source suite/parts/inc/partition_alter2.inc
# --source include/partition_alter2.inc # --source inc/partition_alter2.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -62,21 +62,21 @@ let $do_pk_tests= 1; ...@@ -62,21 +62,21 @@ let $do_pk_tests= 1;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_alter3.inc --source suite/parts/inc/partition_alter3.inc
# --source include/partition_alter3.inc # --source inc/partition_alter3.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -61,21 +61,21 @@ let $do_pk_tests= 0; ...@@ -61,21 +61,21 @@ let $do_pk_tests= 0;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_alter3.inc --source suite/parts/inc/partition_alter3.inc
# --source include/partition_alter3.inc # --source inc/partition_alter3.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -63,21 +63,21 @@ let $do_pk_tests= 1; ...@@ -63,21 +63,21 @@ let $do_pk_tests= 1;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_alter4.inc --source suite/parts/inc/partition_alter4.inc
# --source include/partition_alter4.inc # --source inc/partition_alter4.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -62,21 +62,21 @@ let $do_pk_tests= 0; ...@@ -62,21 +62,21 @@ let $do_pk_tests= 0;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_alter4.inc --source suite/parts/inc/partition_alter4.inc
# --source include/partition_alter4.inc # --source inc/partition_alter4.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -63,21 +63,21 @@ let $do_pk_tests= 1; ...@@ -63,21 +63,21 @@ let $do_pk_tests= 1;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_basic.inc --source suite/parts/inc/partition_basic.inc
# --source include/partition_basic.inc # --source inc/partition_basic.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -62,21 +62,21 @@ let $do_pk_tests= 0; ...@@ -62,21 +62,21 @@ let $do_pk_tests= 0;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_basic.inc --source suite/parts/inc/partition_basic.inc
# --source include/partition_basic.inc # --source inc/partition_basic.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -67,8 +67,8 @@ let $do_pk_tests= 1; ...@@ -67,8 +67,8 @@ let $do_pk_tests= 1;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# Bug#18730 Partitions: NDB, crash on SELECT MIN(<unique column>) # Bug#18730 Partitions: NDB, crash on SELECT MIN(<unique column>)
...@@ -78,13 +78,13 @@ let $fixed_bug18735= 0; ...@@ -78,13 +78,13 @@ let $fixed_bug18735= 0;
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_basic.inc --source suite/parts/inc/partition_basic.inc
# --source include/partition_basic.inc # --source inc/partition_basic.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -52,6 +52,6 @@ let $MAX_VALUE= (2147483646); ...@@ -52,6 +52,6 @@ let $MAX_VALUE= (2147483646);
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_bit.inc --source suite/parts/inc/partition_bit.inc
# --source include/partition_basic.inc # --source inc/partition_basic.inc
...@@ -51,6 +51,6 @@ let $MAX_VALUE= (2147483646); ...@@ -51,6 +51,6 @@ let $MAX_VALUE= (2147483646);
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_bit.inc --source suite/parts/inc/partition_bit.inc
# --source include/partition_basic.inc # --source inc/partition_basic.inc
...@@ -52,6 +52,6 @@ let $MAX_VALUE= (2147483646); ...@@ -52,6 +52,6 @@ let $MAX_VALUE= (2147483646);
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_bit.inc --source suite/parts/inc/partition_bit.inc
# --source include/partition_basic.inc # --source inc/partition_basic.inc
...@@ -42,19 +42,19 @@ let $maxrows=65535; ...@@ -42,19 +42,19 @@ let $maxrows=65535;
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_char.inc --source suite/parts/inc/partition_char.inc
--source suite/partitions/include/partition_binary.inc --source suite/parts/inc/partition_binary.inc
--source suite/partitions/include/partition_varchar.inc --source suite/parts/inc/partition_varchar.inc
--source suite/partitions/include/partition_varbinary.inc --source suite/parts/inc/partition_varbinary.inc
--source suite/partitions/include/partition_enum.inc --source suite/parts/inc/partition_enum.inc
--source suite/partitions/include/partition_set.inc --source suite/parts/inc/partition_set.inc
--source suite/partitions/include/partition_blob.inc --source suite/parts/inc/partition_blob.inc
--source suite/partitions/include/partition_text.inc --source suite/parts/inc/partition_text.inc
# --source include/partition_char.inc # --source inc/partition_char.inc
# --source include/partition_binary.inc # --source inc/partition_binary.inc
# --source include/partition_varchar.inc # --source inc/partition_varchar.inc
# --source include/partition_varbinary.inc # --source inc/partition_varbinary.inc
# --source include/partition_enum.inc # --source inc/partition_enum.inc
# --source include/partition_set.inc # --source inc/partition_set.inc
# --source include/partition_blob.inc # --source inc/partition_blob.inc
# --source include/partition_text.inc # --source inc/partition_text.inc
...@@ -39,5 +39,5 @@ let $engine= 'MyISAM'; ...@@ -39,5 +39,5 @@ let $engine= 'MyISAM';
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_key_4col.inc --source suite/parts/inc/partition_key_4col.inc
# --source include/partition_key_4col.inc # --source inc/partition_key_4col.inc
...@@ -42,13 +42,13 @@ let $maxrows=1024; ...@@ -42,13 +42,13 @@ let $maxrows=1024;
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_timestamp.inc --source suite/parts/inc/partition_timestamp.inc
--source suite/partitions/include/partition_date.inc --source suite/parts/inc/partition_date.inc
--source suite/partitions/include/partition_time.inc --source suite/parts/inc/partition_time.inc
--source suite/partitions/include/partition_datetime.inc --source suite/parts/inc/partition_datetime.inc
--source suite/partitions/include/partition_year.inc --source suite/parts/inc/partition_year.inc
# --source include/partition_timestamp.inc # --source inc/partition_timestamp.inc
# --source include/partition_date.inc # --source inc/partition_date.inc
# --source include/partition_time.inc # --source inc/partition_time.inc
# --source include/partition_datetime.inc # --source inc/partition_datetime.inc
# --source include/partition_year.inc # --source inc/partition_year.inc
...@@ -42,13 +42,13 @@ let $maxrows=65535; ...@@ -42,13 +42,13 @@ let $maxrows=65535;
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_timestamp.inc --source suite/parts/inc/partition_timestamp.inc
--source suite/partitions/include/partition_date.inc --source suite/parts/inc/partition_date.inc
--source suite/partitions/include/partition_time.inc --source suite/parts/inc/partition_time.inc
--source suite/partitions/include/partition_datetime.inc --source suite/parts/inc/partition_datetime.inc
--source suite/partitions/include/partition_year.inc --source suite/parts/inc/partition_year.inc
# --source include/partition_timestamp.inc # --source inc/partition_timestamp.inc
# --source include/partition_date.inc # --source inc/partition_date.inc
# --source include/partition_time.inc # --source inc/partition_time.inc
# --source include/partition_datetime.inc # --source inc/partition_datetime.inc
# --source include/partition_year.inc # --source inc/partition_year.inc
...@@ -41,5 +41,5 @@ let $maxrows=1024; ...@@ -41,5 +41,5 @@ let $maxrows=1024;
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_decimal.inc --source suite/parts/inc/partition_decimal.inc
# --source include/partition_decimal.inc # --source inc/partition_decimal.inc
...@@ -41,5 +41,5 @@ let $maxrows=65535; ...@@ -41,5 +41,5 @@ let $maxrows=65535;
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_decimal.inc --source suite/parts/inc/partition_decimal.inc
# --source include/partition_decimal.inc # --source inc/partition_decimal.inc
...@@ -62,21 +62,21 @@ let $do_pk_tests= 1; ...@@ -62,21 +62,21 @@ let $do_pk_tests= 1;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_engine.inc --source suite/parts/inc/partition_engine.inc
# --source include/partition_engine.inc # --source inc/partition_engine.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -61,21 +61,21 @@ let $do_pk_tests= 0; ...@@ -61,21 +61,21 @@ let $do_pk_tests= 0;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_engine.inc --source suite/parts/inc/partition_engine.inc
# --source include/partition_engine.inc # --source inc/partition_engine.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -66,21 +66,21 @@ let $do_pk_tests= 1; ...@@ -66,21 +66,21 @@ let $do_pk_tests= 1;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_engine.inc --source suite/parts/inc/partition_engine.inc
# --source include/partition_engine.inc # --source inc/partition_engine.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -41,7 +41,7 @@ let $maxrows=1024; ...@@ -41,7 +41,7 @@ let $maxrows=1024;
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_float.inc --source suite/parts/inc/partition_float.inc
--source suite/partitions/include/partition_double.inc --source suite/parts/inc/partition_double.inc
# --source include/partition_float.inc # --source inc/partition_float.inc
# --source include/partition_double.inc # --source inc/partition_double.inc
...@@ -41,7 +41,7 @@ let $maxrows=16384; ...@@ -41,7 +41,7 @@ let $maxrows=16384;
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_float.inc --source suite/parts/inc/partition_float.inc
--source suite/partitions/include/partition_double.inc --source suite/parts/inc/partition_double.inc
# --source include/partition_float.inc # --source inc/partition_float.inc
# --source include/partition_double.inc # --source inc/partition_double.inc
...@@ -42,13 +42,13 @@ let $maxrows=1024; ...@@ -42,13 +42,13 @@ let $maxrows=1024;
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_tinyint.inc --source suite/parts/inc/partition_tinyint.inc
--source suite/partitions/include/partition_smallint.inc --source suite/parts/inc/partition_smallint.inc
--source suite/partitions/include/partition_int.inc --source suite/parts/inc/partition_int.inc
--source suite/partitions/include/partition_mediumint.inc --source suite/parts/inc/partition_mediumint.inc
--source suite/partitions/include/partition_bigint.inc --source suite/parts/inc/partition_bigint.inc
# --source include/partition_tinyint.inc # --source inc/partition_tinyint.inc
# --source include/partition_samllint.inc # --source inc/partition_samllint.inc
# --source include/partition_int.inc # --source inc/partition_int.inc
# --source include/partition_mediumint.inc # --source inc/partition_mediumint.inc
# --source include/partition_bigint.inc # --source inc/partition_bigint.inc
...@@ -41,13 +41,13 @@ let $maxrows=65535; ...@@ -41,13 +41,13 @@ let $maxrows=65535;
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_tinyint.inc --source suite/parts/inc/partition_tinyint.inc
--source suite/partitions/include/partition_smallint.inc --source suite/parts/inc/partition_smallint.inc
--source suite/partitions/include/partition_int.inc --source suite/parts/inc/partition_int.inc
--source suite/partitions/include/partition_mediumint.inc --source suite/parts/inc/partition_mediumint.inc
--source suite/partitions/include/partition_bigint.inc --source suite/parts/inc/partition_bigint.inc
# --source include/partition_tinyint.inc # --source inc/partition_tinyint.inc
# --source include/partition_samllint.inc # --source inc/partition_samllint.inc
# --source include/partition_int.inc # --source inc/partition_int.inc
# --source include/partition_mediumint.inc # --source inc/partition_mediumint.inc
# --source include/partition_bigint.inc # --source inc/partition_bigint.inc
...@@ -40,13 +40,13 @@ let $engine= 'NDB'; ...@@ -40,13 +40,13 @@ let $engine= 'NDB';
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_tinyint.inc --source suite/parts/inc/partition_tinyint.inc
--source suite/partitions/include/partition_smallint.inc --source suite/parts/inc/partition_smallint.inc
--source suite/partitions/include/partition_int.inc --source suite/parts/inc/partition_int.inc
--source suite/partitions/include/partition_mediumint.inc --source suite/parts/inc/partition_mediumint.inc
--source suite/partitions/include/partition_bigint.inc --source suite/parts/inc/partition_bigint.inc
# --source include/partition_tinyint.inc # --source inc/partition_tinyint.inc
# --source include/partition_samllint.inc # --source inc/partition_samllint.inc
# --source include/partition_int.inc # --source inc/partition_int.inc
# --source include/partition_mediumint.inc # --source inc/partition_mediumint.inc
# --source include/partition_bigint.inc # --source inc/partition_bigint.inc
...@@ -39,11 +39,11 @@ let $engine= 'InnoDB'; ...@@ -39,11 +39,11 @@ let $engine= 'InnoDB';
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_key_4col.inc --source suite/parts/inc/partition_key_4col.inc
--source suite/partitions/include/partition_key_8col.inc --source suite/parts/inc/partition_key_8col.inc
--source suite/partitions/include/partition_key_16col.inc --source suite/parts/inc/partition_key_16col.inc
--source suite/partitions/include/partition_key_32col.inc --source suite/parts/inc/partition_key_32col.inc
# --source include/partition_key_4col.inc # --source inc/partition_key_4col.inc
# --source include/partition_key_8col.inc # --source inc/partition_key_8col.inc
# --source include/partition_key_16col.inc # --source inc/partition_key_16col.inc
# --source include/partition_key_32col.inc # --source inc/partition_key_32col.inc
...@@ -39,11 +39,11 @@ let $engine= 'MyISAM'; ...@@ -39,11 +39,11 @@ let $engine= 'MyISAM';
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_key_4col.inc --source suite/parts/inc/partition_key_4col.inc
--source suite/partitions/include/partition_key_8col.inc --source suite/parts/inc/partition_key_8col.inc
--source suite/partitions/include/partition_key_16col.inc --source suite/parts/inc/partition_key_16col.inc
--source suite/partitions/include/partition_key_32col.inc --source suite/parts/inc/partition_key_32col.inc
# --source include/partition_key_4col.inc # --source inc/partition_key_4col.inc
# --source include/partition_key_8col.inc # --source inc/partition_key_8col.inc
# --source include/partition_key_16col.inc # --source inc/partition_key_16col.inc
# --source include/partition_key_32col.inc # --source inc/partition_key_32col.inc
...@@ -62,21 +62,21 @@ let $do_pk_tests= 1; ...@@ -62,21 +62,21 @@ let $do_pk_tests= 1;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_syntax.inc --source suite/parts/inc/partition_syntax.inc
# --source include/partition_syntax.inc # --source inc/partition_syntax.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -61,21 +61,21 @@ let $do_pk_tests= 0; ...@@ -61,21 +61,21 @@ let $do_pk_tests= 0;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_syntax.inc --source suite/parts/inc/partition_syntax.inc
# --source include/partition_syntax.inc # --source inc/partition_syntax.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -66,8 +66,8 @@ let $do_pk_tests= 1; ...@@ -66,8 +66,8 @@ let $do_pk_tests= 1;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# Bug#18735: Partitions: NDB, UNIQUE INDEX, UPDATE, strange server response # Bug#18735: Partitions: NDB, UNIQUE INDEX, UPDATE, strange server response
...@@ -75,13 +75,13 @@ let $fixed_bug18735= 0; ...@@ -75,13 +75,13 @@ let $fixed_bug18735= 0;
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_syntax.inc --source suite/parts/inc/partition_syntax.inc
# --source include/partition_syntax.inc # --source inc/partition_syntax.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -62,21 +62,21 @@ let $do_pk_tests= 1; ...@@ -62,21 +62,21 @@ let $do_pk_tests= 1;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_value.inc --source suite/parts/inc/partition_value.inc
# --source include/partition_value.inc # --source inc/partition_value.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -61,21 +61,21 @@ let $do_pk_tests= 0; ...@@ -61,21 +61,21 @@ let $do_pk_tests= 0;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_value.inc --source suite/parts/inc/partition_value.inc
# --source include/partition_value.inc # --source inc/partition_value.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
...@@ -66,21 +66,21 @@ let $do_pk_tests= 1; ...@@ -66,21 +66,21 @@ let $do_pk_tests= 1;
let $MAX_VALUE= (2147483646); let $MAX_VALUE= (2147483646);
# Generate the prerequisites ($variables, @variables, tables) needed # Generate the prerequisites ($variables, @variables, tables) needed
--source suite/partitions/include/partition.pre --source suite/parts/inc/partition.pre
# --source include/partition.pre # --source inc/partition.pre
##### Workarounds for known open engine specific bugs ##### Workarounds for known open engine specific bugs
# none # none
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute the tests to be applied to all storage engines # Execute the tests to be applied to all storage engines
--source suite/partitions/include/partition_value.inc --source suite/parts/inc/partition_value.inc
# --source include/partition_value.inc # --source inc/partition_value.inc
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Execute storage engine specific tests # Execute storage engine specific tests
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# Cleanup # Cleanup
--source suite/partitions/include/partition_cleanup.inc --source suite/parts/inc/partition_cleanup.inc
# --source include/partition_cleanup.inc # --source inc/partition_cleanup.inc
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment