testing 5.7 and JSON
This commit is contained in:
parent
5294ab6bd1
commit
93d8ccbf12
@ -3,9 +3,9 @@ create table gh_ost_test (
|
|||||||
id int unsigned auto_increment,
|
id int unsigned auto_increment,
|
||||||
i int not null,
|
i int not null,
|
||||||
ts0 timestamp default current_timestamp,
|
ts0 timestamp default current_timestamp,
|
||||||
ts1 timestamp,
|
ts1 timestamp null,
|
||||||
dt2 datetime,
|
dt2 datetime,
|
||||||
t datetime,
|
t datetime default current_timestamp,
|
||||||
updated tinyint unsigned default 0,
|
updated tinyint unsigned default 0,
|
||||||
primary key(id, t),
|
primary key(id, t),
|
||||||
key i_idx(i)
|
key i_idx(i)
|
||||||
|
@ -1 +1 @@
|
|||||||
--alter="change column t t timestamp not null"
|
--alter="change column t t timestamp default current_timestamp"
|
||||||
|
@ -3,9 +3,9 @@ create table gh_ost_test (
|
|||||||
id int unsigned auto_increment,
|
id int unsigned auto_increment,
|
||||||
i int not null,
|
i int not null,
|
||||||
ts0 timestamp default current_timestamp,
|
ts0 timestamp default current_timestamp,
|
||||||
ts1 timestamp,
|
ts1 timestamp null,
|
||||||
dt2 datetime,
|
dt2 datetime,
|
||||||
t datetime,
|
t datetime null,
|
||||||
updated tinyint unsigned default 0,
|
updated tinyint unsigned default 0,
|
||||||
primary key(id),
|
primary key(id),
|
||||||
key i_idx(i)
|
key i_idx(i)
|
||||||
|
@ -1 +1 @@
|
|||||||
--alter="change column t t timestamp not null"
|
--alter="change column t t timestamp null"
|
||||||
|
@ -2,7 +2,7 @@ drop table if exists gh_ost_test;
|
|||||||
create table gh_ost_test (
|
create table gh_ost_test (
|
||||||
id int auto_increment,
|
id int auto_increment,
|
||||||
i int not null,
|
i int not null,
|
||||||
e enum('red', 'green', 'blue', 'orange') null default null collate 'utf8_bin',
|
e enum('red', 'green', 'blue', 'orange') not null default 'red' collate 'utf8_bin',
|
||||||
primary key(id, e)
|
primary key(id, e)
|
||||||
) auto_increment=1;
|
) auto_increment=1;
|
||||||
|
|
||||||
|
21
localtests/json57/create.sql
Normal file
21
localtests/json57/create.sql
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
drop table if exists gh_ost_test;
|
||||||
|
create table gh_ost_test (
|
||||||
|
id int auto_increment,
|
||||||
|
j json,
|
||||||
|
primary key(id)
|
||||||
|
) auto_increment=1;
|
||||||
|
|
||||||
|
drop event if exists gh_ost_test;
|
||||||
|
delimiter ;;
|
||||||
|
create event gh_ost_test
|
||||||
|
on schedule every 1 second
|
||||||
|
starts current_timestamp
|
||||||
|
ends current_timestamp + interval 60 second
|
||||||
|
on completion not preserve
|
||||||
|
enable
|
||||||
|
do
|
||||||
|
begin
|
||||||
|
insert into gh_ost_test values (null, '"sometext"');
|
||||||
|
insert into gh_ost_test values (null, '{"key":"val"}');
|
||||||
|
insert into gh_ost_test values (null, '{"is-it": true, "count": 3, "elements": []}');
|
||||||
|
end ;;
|
@ -3,7 +3,7 @@ create table gh_ost_test (
|
|||||||
id int auto_increment,
|
id int auto_increment,
|
||||||
i int not null,
|
i int not null,
|
||||||
ts0 timestamp default current_timestamp,
|
ts0 timestamp default current_timestamp,
|
||||||
ts1 timestamp,
|
ts1 timestamp default current_timestamp,
|
||||||
dt2 datetime,
|
dt2 datetime,
|
||||||
t datetime,
|
t datetime,
|
||||||
updated tinyint unsigned default 0,
|
updated tinyint unsigned default 0,
|
||||||
|
@ -3,8 +3,8 @@ create table gh_ost_test (
|
|||||||
id int auto_increment,
|
id int auto_increment,
|
||||||
i int not null,
|
i int not null,
|
||||||
ts0 timestamp default current_timestamp,
|
ts0 timestamp default current_timestamp,
|
||||||
ts1 timestamp,
|
ts1 timestamp default current_timestamp,
|
||||||
ts2 timestamp,
|
ts2 timestamp default current_timestamp,
|
||||||
updated tinyint unsigned default 0,
|
updated tinyint unsigned default 0,
|
||||||
primary key(id),
|
primary key(id),
|
||||||
key i_idx(i)
|
key i_idx(i)
|
||||||
|
@ -3,7 +3,7 @@ create table gh_ost_test (
|
|||||||
id int auto_increment,
|
id int auto_increment,
|
||||||
i int not null,
|
i int not null,
|
||||||
ts0 timestamp default current_timestamp,
|
ts0 timestamp default current_timestamp,
|
||||||
ts1 timestamp,
|
ts1 timestamp default current_timestamp,
|
||||||
dt2 datetime,
|
dt2 datetime,
|
||||||
t datetime,
|
t datetime,
|
||||||
updated tinyint unsigned default 0,
|
updated tinyint unsigned default 0,
|
||||||
|
@ -1 +1 @@
|
|||||||
--alter="change column t t timestamp not null"
|
--alter="change column t t timestamp not null default current_timestamp"
|
||||||
|
@ -3,8 +3,8 @@ create table gh_ost_test (
|
|||||||
id int auto_increment,
|
id int auto_increment,
|
||||||
i int not null,
|
i int not null,
|
||||||
ts0 timestamp default current_timestamp,
|
ts0 timestamp default current_timestamp,
|
||||||
ts1 timestamp,
|
ts1 timestamp default current_timestamp,
|
||||||
ts2 timestamp,
|
ts2 timestamp default current_timestamp,
|
||||||
updated tinyint unsigned default 0,
|
updated tinyint unsigned default 0,
|
||||||
primary key(id),
|
primary key(id),
|
||||||
key i_idx(i)
|
key i_idx(i)
|
||||||
|
Loading…
Reference in New Issue
Block a user