summaryrefslogtreecommitdiff
path: root/mysql-test/suite/versioning/r/select.result
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2019-12-02 12:46:15 +0300
committerAleksey Midenkov <midenok@gmail.com>2019-12-02 12:46:15 +0300
commit1d46923a0f6508d52d7ce679a7dd8e7e0e957ae4 (patch)
treee49b51394ca259fb5e54be41df8fb382f49fa420 /mysql-test/suite/versioning/r/select.result
parenta3b63b8da36b5896dc0093fdbceb2851e0a04214 (diff)
downloadmariadb-git-1d46923a0f6508d52d7ce679a7dd8e7e0e957ae4.tar.gz
MDEV-18929 2nd execution of SP does not detect ER_VERS_NOT_VERSIONED (10.4)
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
Diffstat (limited to 'mysql-test/suite/versioning/r/select.result')
-rw-r--r--mysql-test/suite/versioning/r/select.result15
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/suite/versioning/r/select.result b/mysql-test/suite/versioning/r/select.result
index 3569268ce1d..b63e6222581 100644
--- a/mysql-test/suite/versioning/r/select.result
+++ b/mysql-test/suite/versioning/r/select.result
@@ -356,6 +356,21 @@ ERROR HY000: Table `t` is not system-versioned
create or replace table t1 (x int) with system versioning engine myisam;
select * from t1 for system_time as of transaction 1;
ERROR HY000: Transaction-precise system versioning for `t1` is not supported
+# 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;
+call sp;
+ERROR HY000: Transaction-precise system versioning for `t1` is not supported
+call sp;
+ERROR HY000: Transaction-precise system versioning for `t1` is not supported
+create or replace table t1 (a int);
+create or replace procedure sp()
+select * from t1 for system_time all;
+call sp;
+ERROR HY000: Table `t1` is not system-versioned
+call sp;
+ERROR HY000: Table `t1` is not system-versioned
+drop procedure sp;
create or replace table t1 (
x int,
sys_trx_start bigint unsigned as row start invisible,