mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
12e5d5b6be
Bug#31610 Remove outdated and redundant tests: partition_02myisam partition_03ndb Bug#32405 testsuite parts: partition_char_myisam wrong content and cleanup of testsuite - remove/correct wrong comments - remove workarounds for fixed bugs - replace error numbers with error names - exclude subtests from execution which fail now because of new limitations for partitioning functions - remove code for the no more intended dual use fast test in regression tests/slow test in testsuite - analyze and fix problems with partition_char_innodb - fix problems caused by last change of error numbers - Introduce error name to error number mapping which makes maintenance after next error renumbering easier
34 lines
975 B
PHP
34 lines
975 B
PHP
# inc/partition_11.inc
|
|
#
|
|
# Try to create a table with the given partition number
|
|
#
|
|
|
|
eval CREATE TABLE t1 ( f1 INTEGER, f2 char(20))
|
|
PARTITION BY HASH(f1) PARTITIONS $part_number;
|
|
--disable_query_log
|
|
eval SET @my_errno= $mysql_errno ;
|
|
let $run= `SELECT @my_errno = 0`;
|
|
--enable_query_log
|
|
#
|
|
# If this operation was successfull, check + drop this table
|
|
if ($run)
|
|
{
|
|
--source suite/parts/inc/partition_10.inc
|
|
eval DROP TABLE t1;
|
|
}
|
|
#### Try to create a table with the given subpartition number
|
|
eval CREATE TABLE t1 ( f1 INTEGER, f2 char(20))
|
|
PARTITION BY RANGE(f1) SUBPARTITION BY HASH(f1)
|
|
SUBPARTITIONS $part_number
|
|
(PARTITION part1 VALUES LESS THAN ($max_row_div2), PARTITION part2 VALUES LESS THAN ($max_int_4));
|
|
--disable_query_log
|
|
eval SET @my_errno= $mysql_errno ;
|
|
let $run= `SELECT @my_errno = 0`;
|
|
--enable_query_log
|
|
#
|
|
# If this operation was successfull, check + drop this table
|
|
if ($run)
|
|
{
|
|
--source suite/parts/inc/partition_10.inc
|
|
eval DROP TABLE t1;
|
|
}
|