mirror of
https://github.com/MariaDB/server.git
synced 2025-10-25 18:38:00 +03:00
Handle default engine type better for
partitioned tables mysql-test/r/partition.result: New test cases for SHOW CREATE TABLE mysql-test/r/partition_range.result: New test cases for SHOW CREATE TABLE mysql-test/t/partition.test: New test cases for SHOW CREATE TABLE mysql-test/t/partition_range.test: New test cases for SHOW CREATE TABLE sql/handler.h: Handle default engine type better sql/sql_partition.cc: Handle default engine type better sql/sql_show.cc: Handle default engine type better sql/sql_table.cc: Handle default engine type better sql/sql_yacc.yy: Handle default engine type better sql/table.cc: Handle default engine type better sql/unireg.cc: Handle default engine type better
This commit is contained in:
@@ -23,6 +23,11 @@ partition by key (a);
|
||||
#
|
||||
select count(*) from t1;
|
||||
|
||||
#
|
||||
# Test SHOW CREATE TABLE
|
||||
#
|
||||
show create table t1;
|
||||
|
||||
drop table t1;
|
||||
#
|
||||
# Partition by key no partition, list of fields
|
||||
|
||||
@@ -30,6 +30,7 @@ INSERT into t1 values (10, 1, 1);
|
||||
INSERT into t1 values (15, 1, 1);
|
||||
|
||||
select * from t1;
|
||||
show create table t1;
|
||||
|
||||
ALTER TABLE t1
|
||||
partition by range (a)
|
||||
@@ -39,6 +40,7 @@ partitions 3
|
||||
partition x3 values less than maxvalue tablespace ts3);
|
||||
|
||||
select * from t1;
|
||||
show create table t1;
|
||||
|
||||
drop table if exists t1;
|
||||
|
||||
@@ -143,6 +145,10 @@ subpartition by hash (a+b)
|
||||
);
|
||||
|
||||
SELECT * from t1;
|
||||
show create table t1;
|
||||
|
||||
ALTER TABLE t1 ADD COLUMN d int;
|
||||
show create table t1;
|
||||
|
||||
drop table t1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user