mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-15991 Server crashes in setup_on_expr upon calling SP or function executing DML on versioned tables
Do not try to set versioning conditions on every SP call. It may work incorrectly, but it's a general bug described in MDEV-774. This patch makes system versioning stuff consistent with other code and also fixes a use-after-free bug. Closes #756
This commit is contained in:
committed by
Sergei Golubchik
parent
b1efff46cd
commit
748ef3ec91
@ -538,6 +538,27 @@ a
|
||||
select * from t1 for system_time from @t2 to @t1;
|
||||
a
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-15991 Server crashes in setup_on_expr upon calling SP or function executing DML on versioned tables
|
||||
#
|
||||
create or replace table t1 (i int);
|
||||
insert into t1 values (1);
|
||||
create or replace procedure p(n int)
|
||||
begin
|
||||
select * from t1;
|
||||
end $
|
||||
call p(1);
|
||||
i
|
||||
1
|
||||
alter table t1 add system versioning;
|
||||
call p(2);
|
||||
i
|
||||
1
|
||||
call p(3);
|
||||
i
|
||||
1
|
||||
drop procedure p;
|
||||
drop table t1;
|
||||
call verify_trt_dummy(34);
|
||||
No A B C D
|
||||
1 1 1 1 1
|
||||
|
Reference in New Issue
Block a user