| 1 |
# inc/partition_11.inc |
| 2 |
# |
| 3 |
# Try to create a table with the given partition number |
| 4 |
# |
| 5 |
|
| 6 |
eval CREATE TABLE t1 ( f1 INTEGER, f2 char(20)) |
| 7 |
PARTITION BY HASH(f1) PARTITIONS $part_number; |
| 8 |
--disable_query_log |
| 9 |
eval SET @my_errno= $mysql_errno ; |
| 10 |
let $run= `SELECT @my_errno = 0`; |
| 11 |
--enable_query_log |
| 12 |
# |
| 13 |
# If this operation was successfull, check + drop this table |
| 14 |
if ($run) |
| 15 |
{ |
| 16 |
--source suite/parts/inc/partition_10.inc |
| 17 |
eval DROP TABLE t1; |
| 18 |
} |
| 19 |
#### Try to create a table with the given subpartition number |
| 20 |
eval CREATE TABLE t1 ( f1 INTEGER, f2 char(20)) |
| 21 |
PARTITION BY RANGE(f1) SUBPARTITION BY HASH(f1) |
| 22 |
SUBPARTITIONS $part_number |
| 23 |
(PARTITION part1 VALUES LESS THAN ($max_row_div2), PARTITION part2 VALUES LESS THAN ($max_int_4)); |
| 24 |
--disable_query_log |
| 25 |
eval SET @my_errno= $mysql_errno ; |
| 26 |
let $run= `SELECT @my_errno = 0`; |
| 27 |
--enable_query_log |
| 28 |
# |
| 29 |
# If this operation was successfull, check + drop this table |
| 30 |
if ($run) |
| 31 |
{ |
| 32 |
--source suite/parts/inc/partition_10.inc |
| 33 |
eval DROP TABLE t1; |
| 34 |
} |