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
e26b07db
Commit
e26b07db
authored
May 11, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test case for a MySQL 5.7 bug that did not affect MariaDB
parent
82f0dc35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
mysql-test/suite/innodb/r/foreign_key.result
mysql-test/suite/innodb/r/foreign_key.result
+11
-0
mysql-test/suite/innodb/t/foreign_key.test
mysql-test/suite/innodb/t/foreign_key.test
+12
-0
No files found.
mysql-test/suite/innodb/r/foreign_key.result
View file @
e26b07db
...
...
@@ -306,3 +306,14 @@ id member_id
SELECT * FROM payment_method;
id member_id cardholder_address_id
DROP TABLE payment_method,address,member;
#
# Bug #26958695 INNODB NESTED STORED FIELD WITH CONSTRAINT KEY
# PRODUCE BROKEN TABLE (no bug in MariaDB)
#
create table t1(f1 int,f2 int, primary key(f1), key(f2, f1))engine=innodb;
create table t2(f1 int, f2 int as (2) stored, f3 int as (f2) stored,
foreign key(f1) references t1(f2) on update set NULL)
engine=innodb;
insert into t1 values(1, 1);
insert into t2(f1) values(1);
drop table t2, t1;
mysql-test/suite/innodb/t/foreign_key.test
View file @
e26b07db
...
...
@@ -276,4 +276,16 @@ SELECT * FROM payment_method;
DROP
TABLE
payment_method
,
address
,
member
;
--
echo
#
--
echo
# Bug #26958695 INNODB NESTED STORED FIELD WITH CONSTRAINT KEY
--
echo
# PRODUCE BROKEN TABLE (no bug in MariaDB)
--
echo
#
create
table
t1
(
f1
int
,
f2
int
,
primary
key
(
f1
),
key
(
f2
,
f1
))
engine
=
innodb
;
create
table
t2
(
f1
int
,
f2
int
as
(
2
)
stored
,
f3
int
as
(
f2
)
stored
,
foreign
key
(
f1
)
references
t1
(
f2
)
on
update
set
NULL
)
engine
=
innodb
;
insert
into
t1
values
(
1
,
1
);
insert
into
t2
(
f1
)
values
(
1
);
drop
table
t2
,
t1
;
--
source
include
/
wait_until_count_sessions
.
inc
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