diff options
author | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2021-09-07 16:32:35 +0300 |
---|---|---|
committer | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2021-09-07 16:32:35 +0300 |
commit | b85b8348e761e38dcc2d49d171b7e28c32397374 (patch) | |
tree | 03d22c6ea95877ab0d833292cc791a5a2dd0eac9 /mysql-test/suite/galera/r | |
parent | 391f6b4f1ebe4dccfaf0181257aa46edb6253015 (diff) | |
parent | 528abc749e8a65674dd10f59a2d99d7841709939 (diff) | |
download | mariadb-git-b85b8348e761e38dcc2d49d171b7e28c32397374.tar.gz |
Merge branch '10.2' into 10.3
Diffstat (limited to 'mysql-test/suite/galera/r')
-rw-r--r-- | mysql-test/suite/galera/r/galera_fk_multibyte.result | 33 | ||||
-rw-r--r-- | mysql-test/suite/galera/r/galera_fulltext.result | 28 |
2 files changed, 61 insertions, 0 deletions
diff --git a/mysql-test/suite/galera/r/galera_fk_multibyte.result b/mysql-test/suite/galera/r/galera_fk_multibyte.result new file mode 100644 index 00000000000..dfb3b86ff38 --- /dev/null +++ b/mysql-test/suite/galera/r/galera_fk_multibyte.result @@ -0,0 +1,33 @@ +create table p (i varchar(100) primary key, j int) ENGINE=InnoDB DEFAULT CHARSET=utf8; +create table c1 (i int primary key auto_increment, j varchar(100), k int, key(j), constraint fk1 foreign key (j) references p(i)) ENGINE=InnoDB DEFAULT CHARSET=utf8; +create table c2 (i int primary key auto_increment, j varchar(100), k int, key(j), constraint fk2 foreign key (j) references p(i)) ENGINE=InnoDB DEFAULT CHARSET=utf8; +insert into p values('sippo',1); +insert into c1 values(1,'sippo',1); +insert into c2 values(1,'sippo',1); +update c1 set k = 100 where j = 'sippo'; +insert into c1 values(2,'sippo',1); +select * from p; +i j +sippo 1 +select * from c1; +i j k +1 sippo 100 +2 sippo 1 +select * from c2; +i j k +1 sippo 1 +connection node_2; +select * from p; +i j +sippo 1 +select * from c1; +i j k +1 sippo 100 +2 sippo 1 +select * from c2; +i j k +1 sippo 1 +connection node_1; +drop table c1; +drop table c2; +drop table p; diff --git a/mysql-test/suite/galera/r/galera_fulltext.result b/mysql-test/suite/galera/r/galera_fulltext.result index af017083b4e..bb482b7f4f7 100644 --- a/mysql-test/suite/galera/r/galera_fulltext.result +++ b/mysql-test/suite/galera/r/galera_fulltext.result @@ -62,3 +62,31 @@ COUNT(*) 1 connection node_1; DROP TABLE t; +connection node_1; +SET @value=REPEAT (1,5001); +CREATE TABLE t (a VARCHAR(5000),FULLTEXT (a)) engine=innodb DEFAULT CHARSET=utf8; +INSERT IGNORE INTO t VALUES(@value); +Warnings: +Warning 1265 Data truncated for column 'a' at row 1 +SELECT COUNT(*) FROM t; +COUNT(*) +1 +connection node_2; +SELECT COUNT(*) FROM t; +COUNT(*) +1 +connection node_1; +DROP TABLE t; +CREATE TABLE t (a VARCHAR(5000)) engine=innodb DEFAULT CHARSET=utf8; +INSERT IGNORE INTO t VALUES(@value); +Warnings: +Warning 1265 Data truncated for column 'a' at row 1 +SELECT COUNT(*) FROM t; +COUNT(*) +1 +connection node_2; +SELECT COUNT(*) FROM t; +COUNT(*) +1 +connection node_1; +DROP TABLE t; |