1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-5816: Stored programs: validation of stored program statements

Fix of existing mtr tests.
This commit is contained in:
Dmitry Shulga
2023-07-19 18:21:27 +07:00
parent 6abc16cbf7
commit ec04357bf9
10 changed files with 39 additions and 32 deletions

View File

@ -8700,11 +8700,10 @@ create table t1 (a int);
insert into t1 (a) values (1), (2), (3), (4), (5);
--echo #
--echo # Do we correctly resolve identifiers in LIMIT?
--echo # Since DROP and CREATE did not invalidate
--echo # the SP cache, we can't test until
--echo # we drop and re-create the procedure.
--echo # DROP and CREATE results in SP statement recompilation
--echo # so second execution of the procedure p1() doesn't lead
--echo # to issuing an error
--echo #
--error ER_BAD_FIELD_ERROR
call p1();
--echo #
--echo # Drop and recreate the procedure, then repeat