mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-23518 Syntax error in ond SP results in misleading message on SHOW CREATE PROCEDURE
Add info to the error message how to get details about error which happened.
This commit is contained in:
@ -335,6 +335,7 @@ CREATE PACKAGE BODY test2 AS
|
||||
END;
|
||||
$$
|
||||
DELIMITER ;$$
|
||||
show warnings;
|
||||
|
||||
DROP PACKAGE test2;
|
||||
|
||||
@ -367,10 +368,13 @@ UPDATE mysql.proc SET `body`='garbage'
|
||||
--source sp-cache-invalidate.inc
|
||||
--error ER_SP_PROC_TABLE_CORRUPT
|
||||
SELECT test2.f1();
|
||||
show warnings;
|
||||
--error ER_SP_PROC_TABLE_CORRUPT
|
||||
SELECT test2.f1();
|
||||
show warnings;
|
||||
--error ER_SP_PROC_TABLE_CORRUPT
|
||||
SELECT test2.f1();
|
||||
show warnings;
|
||||
|
||||
DROP PACKAGE test2;
|
||||
|
||||
@ -403,10 +407,13 @@ UPDATE mysql.proc SET `body`='garbage'
|
||||
--source sp-cache-invalidate.inc
|
||||
--error ER_SP_PROC_TABLE_CORRUPT
|
||||
CALL test2.p1();
|
||||
show warnings;
|
||||
--error ER_SP_PROC_TABLE_CORRUPT
|
||||
CALL test2.p1();
|
||||
show warnings;
|
||||
--error ER_SP_PROC_TABLE_CORRUPT
|
||||
CALL test2.p1();
|
||||
show warnings;
|
||||
|
||||
DROP PACKAGE test2;
|
||||
|
||||
|
Reference in New Issue
Block a user