mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-18929 2nd execution of SP does not detect ER_VERS_NOT_VERSIONED
Don't do skip_setup_conds() unless all errors are checked. Fixes following errors: ER_PERIOD_NOT_FOUND ER_VERS_QUERY_IN_PARTITION ER_VERS_ENGINE_UNSUPPORTED ER_VERS_NOT_VERSIONED
This commit is contained in:
@@ -455,6 +455,14 @@ delete from t1 where a is not null;
|
||||
create or replace table t1 (i int) with system versioning partition by system_time limit 10 (partition p0 history, partition pn current);
|
||||
--error ER_VERS_QUERY_IN_PARTITION
|
||||
select * from t1 partition (p0) for system_time all;
|
||||
--echo # MDEV-18929 2nd execution of SP does not detect ER_VERS_NOT_VERSIONED
|
||||
create or replace procedure sp()
|
||||
select * from t1 partition (p0) for system_time all;
|
||||
--error ER_VERS_QUERY_IN_PARTITION
|
||||
call sp;
|
||||
--error ER_VERS_QUERY_IN_PARTITION
|
||||
call sp;
|
||||
drop procedure sp;
|
||||
|
||||
--echo # MDEV-15380 Index for versioned table gets corrupt after partitioning and DELETE
|
||||
create or replace table t1 (pk int primary key)
|
||||
|
@@ -202,6 +202,21 @@ for system_time all as t;
|
||||
create or replace table t1 (x int) with system versioning engine myisam;
|
||||
--error ER_VERS_ENGINE_UNSUPPORTED
|
||||
select * from t1 for system_time as of transaction 1;
|
||||
--echo # MDEV-18929 2nd execution of SP does not detect ER_VERS_NOT_VERSIONED
|
||||
create or replace procedure sp()
|
||||
select * from t1 for system_time as of transaction 1;
|
||||
--error ER_VERS_ENGINE_UNSUPPORTED
|
||||
call sp;
|
||||
--error ER_VERS_ENGINE_UNSUPPORTED
|
||||
call sp;
|
||||
create or replace table t1 (a int);
|
||||
create or replace procedure sp()
|
||||
select * from t1 for system_time all;
|
||||
--error ER_VERS_NOT_VERSIONED
|
||||
call sp;
|
||||
--error ER_VERS_NOT_VERSIONED
|
||||
call sp;
|
||||
drop procedure sp;
|
||||
|
||||
create or replace table t1 (
|
||||
x int,
|
||||
|
Reference in New Issue
Block a user