Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
278facee
Commit
278facee
authored
May 28, 2020
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test case for query that was crashing in 10.4.13
parent
ed1434df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
mysql-test/main/alter_table.result
mysql-test/main/alter_table.result
+5
-0
mysql-test/main/alter_table.test
mysql-test/main/alter_table.test
+9
-0
No files found.
mysql-test/main/alter_table.result
View file @
278facee
...
...
@@ -2594,3 +2594,8 @@ alter table person_principal add column if not exists date_mask tinyint null;
update person_principal set date_mask = 0;
alter table person_principal modify column date_mask tinyint not null;
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;
mysql-test/main/alter_table.test
View file @
278facee
...
...
@@ -2111,3 +2111,12 @@ update person_principal set date_mask = 0;
alter
table
person_principal
modify
column
date_mask
tinyint
not
null
;
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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment