mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge branch 'bb-10.3-release' into 10.3
This commit is contained in:
@ -116,3 +116,17 @@ x
|
||||
2
|
||||
1
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-18929 2nd execution of SP does not detect ER_VERS_NOT_VERSIONED
|
||||
#
|
||||
create or replace table t1 (a int) with system versioning;
|
||||
replace into t1 values (1), (2);
|
||||
create or replace trigger tr before delete on t1 for each row delete from xx;
|
||||
create or replace procedure pr() delete from t1;
|
||||
call pr;
|
||||
ERROR 42S02: Table 'test.xx' doesn't exist
|
||||
call pr;
|
||||
ERROR 42S02: Table 'test.xx' doesn't exist
|
||||
drop procedure pr;
|
||||
drop trigger tr;
|
||||
drop table t1;
|
||||
|
@ -295,5 +295,9 @@ primary key (pk)
|
||||
create or replace view v1 as select * from t1;
|
||||
insert into t1 values (1, null, 'd') , (2, null, 'i') ;
|
||||
update v1 set a= null where b = '';
|
||||
create or replace table t1 (id int, k int, primary key (id)) engine=innodb with system versioning;
|
||||
insert into t1 values (1,1),(2,2);
|
||||
create or replace view v1 as select * from t1;
|
||||
update v1 set id= 2 where k = 0;
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
|
@ -79,4 +79,19 @@ delete from t1;
|
||||
select x from t1 for system_time all;
|
||||
drop table t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-18929 2nd execution of SP does not detect ER_VERS_NOT_VERSIONED
|
||||
--echo #
|
||||
create or replace table t1 (a int) with system versioning;
|
||||
replace into t1 values (1), (2);
|
||||
create or replace trigger tr before delete on t1 for each row delete from xx;
|
||||
create or replace procedure pr() delete from t1;
|
||||
--error ER_NO_SUCH_TABLE
|
||||
call pr;
|
||||
--error ER_NO_SUCH_TABLE
|
||||
call pr;
|
||||
drop procedure pr;
|
||||
drop trigger tr;
|
||||
drop table t1;
|
||||
|
||||
--source suite/versioning/common_finish.inc
|
||||
|
@ -214,6 +214,11 @@ create or replace view v1 as select * from t1;
|
||||
insert into t1 values (1, null, 'd') , (2, null, 'i') ;
|
||||
update v1 set a= null where b = '';
|
||||
|
||||
create or replace table t1 (id int, k int, primary key (id)) engine=innodb with system versioning;
|
||||
insert into t1 values (1,1),(2,2);
|
||||
create or replace view v1 as select * from t1;
|
||||
update v1 set id= 2 where k = 0;
|
||||
|
||||
# cleanup
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user