mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-5816: Stored programs: validation of stored program statements
Fix of existing mtr tests.
This commit is contained in:
@ -6775,7 +6775,7 @@ call p1$
|
||||
a
|
||||
alter table t1 add b integer$
|
||||
call p1$
|
||||
a
|
||||
a b
|
||||
drop table t1;
|
||||
drop procedure p1;
|
||||
# ------------------------------------------------------------------
|
||||
@ -7240,12 +7240,12 @@ create table t1 (a int);
|
||||
insert into t1 (a) values (1), (2), (3), (4), (5);
|
||||
#
|
||||
# Do we correctly resolve identifiers in LIMIT?
|
||||
# Since DROP and CREATE did not invalidate
|
||||
# the SP cache, we can't test until
|
||||
# we drop and re-create the procedure.
|
||||
# DROP and CREATE results in SP statement recompilation
|
||||
# so second execution of the procedure p1() doesn't lead
|
||||
# to issuing an error
|
||||
#
|
||||
call p1();
|
||||
ERROR 42S22: Unknown column 'test.t1.c1' in 'field list'
|
||||
a
|
||||
#
|
||||
# Drop and recreate the procedure, then repeat
|
||||
#
|
||||
|
Reference in New Issue
Block a user