mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
MDEV-18136 Server crashes in Item_func_dyncol_create::prepare_arguments
[Closes tempesta-tech/mariadb#572]
This commit is contained in:
committed by
Alexander Barkov
parent
6473641b9a
commit
c86773f46f
@@ -522,6 +522,25 @@ set timestamp=1523466002.799571;
|
||||
insert into t1 values (11),(12);
|
||||
set timestamp=1523466004.169435;
|
||||
delete from t1 where pk in (11, 12);
|
||||
#
|
||||
# MDEV-18136 Server crashes in Item_func_dyncol_create::prepare_arguments
|
||||
#
|
||||
create or replace table t1 (pk int) with system versioning
|
||||
partition by system_time interval 7 second (
|
||||
partition ver_p1 history,
|
||||
partition ver_pn current);
|
||||
alter table t1
|
||||
partition by system_time interval column_get(column_create(7,7), 7 as int) second (
|
||||
partition ver_p1 history,
|
||||
partition ver_pn current);
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`pk` int(11) DEFAULT NULL
|
||||
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 WITH SYSTEM VERSIONING
|
||||
PARTITION BY SYSTEM_TIME INTERVAL 7 SECOND
|
||||
(PARTITION `ver_p1` HISTORY ENGINE = DEFAULT_ENGINE,
|
||||
PARTITION `ver_pn` CURRENT ENGINE = DEFAULT_ENGINE)
|
||||
# Test cleanup
|
||||
drop database test;
|
||||
create database test;
|
||||
|
Reference in New Issue
Block a user