Commit 278facee authored by Monty's avatar Monty

Added test case for query that was crashing in 10.4.13

parent ed1434df
...@@ -2594,3 +2594,8 @@ alter table person_principal add column if not exists date_mask tinyint null; ...@@ -2594,3 +2594,8 @@ alter table person_principal add column if not exists date_mask tinyint null;
update person_principal set date_mask = 0; update person_principal set date_mask = 0;
alter table person_principal modify column date_mask tinyint not null; alter table person_principal modify column date_mask tinyint not null;
drop tables person_principal_hist, person_principal; drop tables person_principal_hist, person_principal;
CREATE OR REPLACE TABLE `t1` ( `id` varchar(64) NOT NULL, `name` varchar(255) NOT NULL, `extra` text DEFAULT NULL, `password` varchar(128) DEFAULT NULL, `enabled` tinyint(1) DEFAULT NULL, `domain_id` varchar(64) NOT NULL, `default_project_id` varchar(64) DEFAULT NULL, PRIMARY KEY (`id`), CONSTRAINT `CONSTRAINT_1` CHECK (`enabled` in (0,1)) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
insert into t1 (id,name,enabled,domain_id) values (1,"Monty",1,"domain_id");
insert into t1 (id,name,enabled,domain_id) values (2,"Monty2",1,"domain_id2");
ALTER TABLE t1 ADD CONSTRAINT ixu_user2_name_domain_id UNIQUE (domain_id, name);
DROP TABLE t1;
...@@ -2111,3 +2111,12 @@ update person_principal set date_mask = 0; ...@@ -2111,3 +2111,12 @@ update person_principal set date_mask = 0;
alter table person_principal modify column date_mask tinyint not null; alter table person_principal modify column date_mask tinyint not null;
drop tables person_principal_hist, person_principal; drop tables person_principal_hist, person_principal;
#
# The following ALTER TABLE caused crash in 10.4.13 (Reported on freenode)
#
CREATE OR REPLACE TABLE `t1` ( `id` varchar(64) NOT NULL, `name` varchar(255) NOT NULL, `extra` text DEFAULT NULL, `password` varchar(128) DEFAULT NULL, `enabled` tinyint(1) DEFAULT NULL, `domain_id` varchar(64) NOT NULL, `default_project_id` varchar(64) DEFAULT NULL, PRIMARY KEY (`id`), CONSTRAINT `CONSTRAINT_1` CHECK (`enabled` in (0,1)) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
insert into t1 (id,name,enabled,domain_id) values (1,"Monty",1,"domain_id");
insert into t1 (id,name,enabled,domain_id) values (2,"Monty2",1,"domain_id2");
ALTER TABLE t1 ADD CONSTRAINT ixu_user2_name_domain_id UNIQUE (domain_id, name);
DROP TABLE t1;
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