Commit a85539a8 authored by Sergei Golubchik's avatar Sergei Golubchik

fixed "engine not found" error in open_binary_frm

corrected rotten test
parent 18d08210
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
FLUSH TABLES; FLUSH TABLES;
SELECT * FROM t1; SELECT * FROM t1;
ERROR 42000: Unknown storage engine 'partition' ERROR 42000: Unknown storage engine 'partition'
TRUNCATE TABLE t1; TRUNCATE TABLE t1;
ERROR 42000: Unknown storage engine 'partition' ERROR 42000: Unknown storage engine 'partition'
ANALYZE TABLE t1; ANALYZE TABLE t1;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 analyze Error Unknown storage engine 'partition' test.t1 analyze Error Unknown storage engine 'partition'
test.t1 analyze error Corrupt test.t1 analyze error Corrupt
CHECK TABLE t1; CHECK TABLE t1;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 check Error Unknown storage engine 'partition' test.t1 check Error Unknown storage engine 'partition'
test.t1 check error Corrupt test.t1 check error Corrupt
OPTIMIZE TABLE t1; OPTIMIZE TABLE t1;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 optimize Error Unknown storage engine 'partition' test.t1 optimize Error Unknown storage engine 'partition'
test.t1 optimize error Corrupt test.t1 optimize error Corrupt
REPAIR TABLE t1; REPAIR TABLE t1;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 repair Error Unknown storage engine 'partition' test.t1 repair Error Unknown storage engine 'partition'
test.t1 repair error Corrupt test.t1 repair error Corrupt
ALTER TABLE t1 REPAIR PARTITION ALL; ALTER TABLE t1 REPAIR PARTITION ALL;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 repair Error Unknown storage engine 'partition' test.t1 repair Error Unknown storage engine 'partition'
test.t1 repair error Corrupt test.t1 repair error Corrupt
ALTER TABLE t1 CHECK PARTITION ALL; ALTER TABLE t1 CHECK PARTITION ALL;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 check Error Unknown storage engine 'partition' test.t1 check Error Unknown storage engine 'partition'
test.t1 check error Corrupt test.t1 check error Corrupt
ALTER TABLE t1 OPTIMIZE PARTITION ALL; ALTER TABLE t1 OPTIMIZE PARTITION ALL;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 optimize Error Unknown storage engine 'partition' test.t1 optimize Error Unknown storage engine 'partition'
test.t1 optimize error Corrupt test.t1 optimize error Corrupt
ALTER TABLE t1 ANALYZE PARTITION ALL; ALTER TABLE t1 ANALYZE PARTITION ALL;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t1 analyze Error Unknown storage engine 'partition' test.t1 analyze Error Unknown storage engine 'partition'
test.t1 analyze error Corrupt test.t1 analyze error Corrupt
ALTER TABLE t1 REBUILD PARTITION ALL; ALTER TABLE t1 REBUILD PARTITION ALL;
ERROR 42000: Unknown storage engine 'partition' ERROR 42000: Unknown storage engine 'partition'
ALTER TABLE t1 ENGINE Memory; ALTER TABLE t1 ENGINE Memory;
ERROR 42000: Unknown storage engine 'partition' ERROR 42000: Unknown storage engine 'partition'
ALTER TABLE t1 ADD (new INT); ALTER TABLE t1 ADD (new INT);
ERROR 42000: Unknown storage engine 'partition' ERROR 42000: Unknown storage engine 'partition'
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 ( CREATE TABLE t1 (
firstname VARCHAR(25) NOT NULL, firstname VARCHAR(25) NOT NULL,
...@@ -52,9 +52,9 @@ joined DATE NOT NULL ...@@ -52,9 +52,9 @@ joined DATE NOT NULL
) )
PARTITION BY KEY(joined) PARTITION BY KEY(joined)
PARTITIONS 6; PARTITIONS 6;
ERROR HY000: The 'partitioning' feature is disabled; you need MySQL built with '--with-partition' to have it working ERROR HY000: The 'partitioning' feature is disabled; you need MySQL built with '--with-plugin-partition' to have it working
ALTER TABLE t1 PARTITION BY KEY(joined) PARTITIONS 2; ALTER TABLE t1 PARTITION BY KEY(joined) PARTITIONS 2;
ERROR HY000: The 'partitioning' feature is disabled; you need MySQL built with '--with-partition' to have it working ERROR HY000: The 'partitioning' feature is disabled; you need MySQL built with '--with-plugin-partition' to have it working
drop table t1; drop table t1;
ERROR 42S02: Unknown table 't1' ERROR 42S02: Unknown table 't1'
CREATE TABLE t1 ( CREATE TABLE t1 (
...@@ -71,7 +71,7 @@ PARTITION p2 VALUES LESS THAN (1980), ...@@ -71,7 +71,7 @@ PARTITION p2 VALUES LESS THAN (1980),
PARTITION p3 VALUES LESS THAN (1990), PARTITION p3 VALUES LESS THAN (1990),
PARTITION p4 VALUES LESS THAN MAXVALUE PARTITION p4 VALUES LESS THAN MAXVALUE
); );
ERROR HY000: The 'partitioning' feature is disabled; you need MySQL built with '--with-partition' to have it working ERROR HY000: The 'partitioning' feature is disabled; you need MySQL built with '--with-plugin-partition' to have it working
drop table t1; drop table t1;
ERROR 42S02: Unknown table 't1' ERROR 42S02: Unknown table 't1'
CREATE TABLE t1 (id INT, purchased DATE) CREATE TABLE t1 (id INT, purchased DATE)
...@@ -82,7 +82,7 @@ PARTITION p0 VALUES LESS THAN (1990), ...@@ -82,7 +82,7 @@ PARTITION p0 VALUES LESS THAN (1990),
PARTITION p1 VALUES LESS THAN (2000), PARTITION p1 VALUES LESS THAN (2000),
PARTITION p2 VALUES LESS THAN MAXVALUE PARTITION p2 VALUES LESS THAN MAXVALUE
); );
ERROR HY000: The 'partitioning' feature is disabled; you need MySQL built with '--with-partition' to have it working ERROR HY000: The 'partitioning' feature is disabled; you need MySQL built with '--with-plugin-partition' to have it working
drop table t1; drop table t1;
ERROR 42S02: Unknown table 't1' ERROR 42S02: Unknown table 't1'
create table t1 (a varchar(10) charset latin1 collate latin1_bin); create table t1 (a varchar(10) charset latin1 collate latin1_bin);
......
...@@ -4297,8 +4297,8 @@ have_partitioning: ...@@ -4297,8 +4297,8 @@ have_partitioning:
MYSQL_YYABORT; MYSQL_YYABORT;
} }
#else #else
my_error(ER_OPTION_PREVENTS_STATEMENT, MYF(0), my_error(ER_FEATURE_DISABLED, MYF(0), "partitioning",
"--skip-partition"); "--with-plugin-partition");
MYSQL_YYABORT; MYSQL_YYABORT;
#endif #endif
} }
......
...@@ -934,6 +934,7 @@ static int open_binary_frm(THD *thd, TABLE_SHARE *share, uchar *head, ...@@ -934,6 +934,7 @@ static int open_binary_frm(THD *thd, TABLE_SHARE *share, uchar *head,
{ {
/* purecov: begin inspected */ /* purecov: begin inspected */
error= 8; error= 8;
name.str[name.length]=0;
my_error(ER_UNKNOWN_STORAGE_ENGINE, MYF(0), name.str); my_error(ER_UNKNOWN_STORAGE_ENGINE, MYF(0), name.str);
my_free(buff, MYF(0)); my_free(buff, MYF(0));
goto err; goto err;
......
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