mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge branch '10.1' into 10.2
This commit is contained in:
@ -67,6 +67,23 @@ SELECT * FROM t2;
|
||||
col_int_key pk_1 pk_2 col_int
|
||||
1 2 3 4
|
||||
DROP TABLE t1,t2;
|
||||
create table t1 (id serial, size int(11)) engine=innodb;
|
||||
create table t2 (id serial, size int, account_id int) engine=innodb;
|
||||
create table t3 (id serial, size int, article_id int) engine=innodb;
|
||||
create table t4 (id serial, file_id int, article_id int) engine=innodb;
|
||||
insert t1 values(null, 400);
|
||||
insert t2 values(null, 0, 1), (null, 1, 1);
|
||||
insert t3 values(null, 100, 1);
|
||||
insert t4 values(null, 1, 2);
|
||||
create trigger file_update_article before update on t3 for each row
|
||||
update t2 set t2.size = new.size where t2.id = new.article_id;
|
||||
create trigger article_update_account before update on t2 for each row
|
||||
update t1 set t1.size = t1.size + new.size where t1.id = new.account_id;
|
||||
update t3 join t4 on t4.file_id =t3.id and t4.article_id=2 set t3.size=t3.size + 2;
|
||||
drop table t1, t2, t3, t4;
|
||||
#
|
||||
# end of 5.5 tests
|
||||
#
|
||||
|
||||
# Bug mdev-5970
|
||||
# Bug#13256831 - ERROR 1032 (HY000): CAN'T FIND RECORD
|
||||
|
Reference in New Issue
Block a user