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
3d1ac121
Commit
3d1ac121
authored
Jul 04, 2014
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test case for
https://bugs.launchpad.net/percona-xtradb-cluster/+bug/1314854
parent
84b3ec1f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
mysql-test/suite/wsrep/r/foreign_key.result
mysql-test/suite/wsrep/r/foreign_key.result
+19
-0
mysql-test/suite/wsrep/t/foreign_key.opt
mysql-test/suite/wsrep/t/foreign_key.opt
+1
-0
mysql-test/suite/wsrep/t/foreign_key.test
mysql-test/suite/wsrep/t/foreign_key.test
+19
-0
No files found.
mysql-test/suite/wsrep/r/foreign_key.result
0 → 100644
View file @
3d1ac121
USE test;
create table p(v varchar(20), i int, primary key(v,i)) engine=innodb character set = utf8;
create table c(k int primary key, v varchar(20), i int, foreign key(v,i) references p(v,i)) engine=innodb character set = utf8;
insert into p values (_utf32 0x000004100000041100000412, 1);
insert into c values (1, _utf32 0x000004100000041100000412, 1);
SELECT * FROM test.p;
v i
??? 1
SELECT * FROM test.c;
k v i
1 ??? 1
SELECT * FROM test.p;
v i
??? 1
SELECT * FROM test.c;
k v i
1 ??? 1
DROP TABLE c;
DROP TABLE p;
mysql-test/suite/wsrep/t/foreign_key.opt
0 → 100644
View file @
3d1ac121
--binlog-format=row --innodb_autoinc_lock_mode=2 --innodb_locks_unsafe_for_binlog=1 --wsrep-provider=$WSREP_PROVIDER --wsrep-cluster-address=gcomm://
mysql-test/suite/wsrep/t/foreign_key.test
0 → 100644
View file @
3d1ac121
--
source
include
/
have_wsrep_enabled
.
inc
--
source
include
/
have_innodb
.
inc
USE
test
;
create
table
p
(
v
varchar
(
20
),
i
int
,
primary
key
(
v
,
i
))
engine
=
innodb
character
set
=
utf8
;
create
table
c
(
k
int
primary
key
,
v
varchar
(
20
),
i
int
,
foreign
key
(
v
,
i
)
references
p
(
v
,
i
))
engine
=
innodb
character
set
=
utf8
;
insert
into
p
values
(
_utf32
0x000004100000041100000412
,
1
);
insert
into
c
values
(
1
,
_utf32
0x000004100000041100000412
,
1
);
SELECT
*
FROM
test
.
p
;
SELECT
*
FROM
test
.
c
;
SELECT
*
FROM
test
.
p
;
SELECT
*
FROM
test
.
c
;
# Cleanup
DROP
TABLE
c
;
DROP
TABLE
p
;
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