mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
A temporary solution to make CREATE TABLE attributes
to work when a table is partitioned
This commit is contained in:
31
mysql-test/r/partition_example.result
Normal file
31
mysql-test/r/partition_example.result
Normal file
@@ -0,0 +1,31 @@
|
||||
install plugin example soname 'ha_example.so';
|
||||
create table t1 (a int not null)
|
||||
engine=example
|
||||
partition by list (a)
|
||||
(partition p0 values in (1), partition p1 values in (2));
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL
|
||||
) ENGINE=EXAMPLE DEFAULT CHARSET=latin1
|
||||
/*!50100 PARTITION BY LIST (a)
|
||||
(PARTITION p0 VALUES IN (1) ENGINE = EXAMPLE,
|
||||
PARTITION p1 VALUES IN (2) ENGINE = EXAMPLE) */
|
||||
drop table t1;
|
||||
create table t1 (a int not null)
|
||||
engine=example ull=12340
|
||||
partition by list (a)
|
||||
(partition p0 values in (1), partition p1 values in (2));
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL
|
||||
) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `ull`=12340
|
||||
/*!50100 PARTITION BY LIST (a)
|
||||
(PARTITION p0 VALUES IN (1) ENGINE = EXAMPLE,
|
||||
PARTITION p1 VALUES IN (2) ENGINE = EXAMPLE) */
|
||||
drop table t1;
|
||||
select 1;
|
||||
1
|
||||
1
|
||||
uninstall plugin example;
|
||||
1
mysql-test/t/partition_example-master.opt
Normal file
1
mysql-test/t/partition_example-master.opt
Normal file
@@ -0,0 +1 @@
|
||||
$EXAMPLE_PLUGIN_OPT
|
||||
23
mysql-test/t/partition_example.test
Normal file
23
mysql-test/t/partition_example.test
Normal file
@@ -0,0 +1,23 @@
|
||||
--source include/not_windows_embedded.inc
|
||||
--source include/have_example_plugin.inc
|
||||
--source include/have_partition.inc
|
||||
|
||||
--replace_regex /\.dll/.so/
|
||||
eval install plugin example soname $HA_EXAMPLE_SO;
|
||||
|
||||
create table t1 (a int not null)
|
||||
engine=example
|
||||
partition by list (a)
|
||||
(partition p0 values in (1), partition p1 values in (2));
|
||||
show create table t1;
|
||||
drop table t1;
|
||||
|
||||
create table t1 (a int not null)
|
||||
engine=example ull=12340
|
||||
partition by list (a)
|
||||
(partition p0 values in (1), partition p1 values in (2));
|
||||
show create table t1;
|
||||
drop table t1;
|
||||
|
||||
select 1;
|
||||
uninstall plugin example;
|
||||
@@ -131,7 +131,7 @@ SET @@SQL_MODE=@OLD_SQL_MODE;
|
||||
# The only preparable statement above was CREATE TABLE.
|
||||
# We need to prepare another statement here to force the
|
||||
# previous one to be deallocated (mysqltest reuses the same handle)
|
||||
# and to unlock all thread-local plugin locks. Otherwise it won't
|
||||
# and to unlock all thread-local plugin locks. Otherwise the plugin won't
|
||||
# uninstall.
|
||||
#
|
||||
select 1;
|
||||
|
||||
Reference in New Issue
Block a user