Commit 3d1ac121 authored by Jan Lindström's avatar Jan Lindström
parent 84b3ec1f
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;
--binlog-format=row --innodb_autoinc_lock_mode=2 --innodb_locks_unsafe_for_binlog=1 --wsrep-provider=$WSREP_PROVIDER --wsrep-cluster-address=gcomm://
--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;
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