|
| 1 | +DROP TABLE IF EXISTS t1; |
| 2 | +FLUSH TABLES; |
| 3 | +SELECT * FROM t1; |
| 4 | +ERROR HY000: The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 5 | +TRUNCATE TABLE t1; |
| 6 | +ERROR HY000: The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 7 | +ANALYZE TABLE t1; |
| 8 | +Table Op Msg_type Msg_text |
| 9 | +test.t1 analyze Error The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 10 | +test.t1 analyze error Corrupt |
| 11 | +CHECK TABLE t1; |
| 12 | +Table Op Msg_type Msg_text |
| 13 | +test.t1 check Error The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 14 | +test.t1 check error Corrupt |
| 15 | +OPTIMIZE TABLE t1; |
| 16 | +Table Op Msg_type Msg_text |
| 17 | +test.t1 optimize Error The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 18 | +test.t1 optimize error Corrupt |
| 19 | +REPAIR TABLE t1; |
| 20 | +Table Op Msg_type Msg_text |
| 21 | +test.t1 repair Error The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 22 | +test.t1 repair error Corrupt |
| 23 | +ALTER TABLE t1 REPAIR PARTITION ALL; |
| 24 | +Table Op Msg_type Msg_text |
| 25 | +test.t1 repair Error The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 26 | +test.t1 repair error Corrupt |
| 27 | +ALTER TABLE t1 CHECK PARTITION ALL; |
| 28 | +Table Op Msg_type Msg_text |
| 29 | +test.t1 check Error The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 30 | +test.t1 check error Corrupt |
| 31 | +ALTER TABLE t1 OPTIMIZE PARTITION ALL; |
| 32 | +Table Op Msg_type Msg_text |
| 33 | +test.t1 optimize Error The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 34 | +test.t1 optimize error Corrupt |
| 35 | +ALTER TABLE t1 ANALYZE PARTITION ALL; |
| 36 | +Table Op Msg_type Msg_text |
| 37 | +test.t1 analyze Error The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 38 | +test.t1 analyze error Corrupt |
| 39 | +ALTER TABLE t1 REBUILD PARTITION ALL; |
| 40 | +ERROR HY000: The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 41 | +ALTER TABLE t1 ENGINE Memory; |
| 42 | +ERROR HY000: The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 43 | +ALTER TABLE t1 ADD (new INT); |
| 44 | +ERROR HY000: The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 45 | +DROP TABLE t1; |
| 46 | +CREATE TABLE t1 ( |
| 47 | +firstname VARCHAR(25) NOT NULL, |
| 48 | +lastname VARCHAR(25) NOT NULL, |
| 49 | +username VARCHAR(16) NOT NULL, |
| 50 | +email VARCHAR(35), |
| 51 | +joined DATE NOT NULL |
| 52 | +) |
| 53 | +PARTITION BY KEY(joined) |
| 54 | +PARTITIONS 6; |
| 55 | +ERROR HY000: The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 56 | +ALTER TABLE t1 PARTITION BY KEY(joined) PARTITIONS 2; |
| 57 | +ERROR HY000: The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 58 | +drop table t1; |
| 59 | +ERROR 42S02: Unknown table 't1' |
| 60 | +CREATE TABLE t1 ( |
| 61 | +firstname VARCHAR(25) NOT NULL, |
| 62 | +lastname VARCHAR(25) NOT NULL, |
| 63 | +username VARCHAR(16) NOT NULL, |
| 64 | +email VARCHAR(35), |
| 65 | +joined DATE NOT NULL |
| 66 | +) |
| 67 | +PARTITION BY RANGE( YEAR(joined) ) ( |
| 68 | +PARTITION p0 VALUES LESS THAN (1960), |
| 69 | +PARTITION p1 VALUES LESS THAN (1970), |
| 70 | +PARTITION p2 VALUES LESS THAN (1980), |
| 71 | +PARTITION p3 VALUES LESS THAN (1990), |
| 72 | +PARTITION p4 VALUES LESS THAN MAXVALUE |
| 73 | +); |
| 74 | +ERROR HY000: The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 75 | +drop table t1; |
| 76 | +ERROR 42S02: Unknown table 't1' |
| 77 | +CREATE TABLE t1 (id INT, purchased DATE) |
| 78 | +PARTITION BY RANGE( YEAR(purchased) ) |
| 79 | +SUBPARTITION BY HASH( TO_DAYS(purchased) ) |
| 80 | +SUBPARTITIONS 2 ( |
| 81 | +PARTITION p0 VALUES LESS THAN (1990), |
| 82 | +PARTITION p1 VALUES LESS THAN (2000), |
| 83 | +PARTITION p2 VALUES LESS THAN MAXVALUE |
| 84 | +); |
| 85 | +ERROR HY000: The MySQL server is running with the --skip-partition option so it cannot execute this statement |
| 86 | +drop table t1; |
| 87 | +ERROR 42S02: Unknown table 't1' |
| 88 | +create table t1 (a varchar(10) charset latin1 collate latin1_bin); |
| 89 | +insert into t1 values (''),(' '),('a'),('a '),('a '); |
| 90 | +explain partitions select * from t1 where a='a ' OR a='a'; |
| 91 | +id select_type table partitions type possible_keys key key_len ref rows Extra |
| 92 | +1 SIMPLE t1 NULL ALL NULL NULL NULL NULL 5 Using where |
| 93 | +drop table t1; |
0 commit comments