Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.6.8, 10.5, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL), 11.1(EOL), 11.2(EOL)
-
None
-
Linux CentOs 7
Description
For stored procedures and packages, the text of the object is available in the I_S.ROUTINES table in the routine_definition column. For Oracle SQL/PL packages these are regustered, as expected, in the I_S.ROUTINES table but the ROUTINE_DEFINITION column is empty. The mysql.proc table does keep this in the body column as expected though. The above is true both for PACKAGE and PACKAGE BODY.
Attachments
Issue Links
- is duplicated by
-
MDEV-26480 Add source of PACKAGE and PACKAGE BODY to information_schema.routines(ROUTINE_DEFINITION)
-
- Closed
-
Repeatable with this script:
DELIMITER $$
$$
BEGIN
$$
DELIMITER ;
*************************** 1. row ***************************
routine_name: pkg1
routine_type: PACKAGE
routine_body: SQL
routine_definition:
*************************** 2. row ***************************
routine_name: pkg1
routine_type: PACKAGE BODY
routine_body: SQL
routine_definition:
2 rows in set (0.005 sec)
Notice, the column routine_definition is empty.
mysql.proc query works fine
An equivalent query to mysql.proc returns definitions without problems:
*************************** 1. row ***************************
name: pkg1
type: PACKAGE
body: AS
FUNCTION f1() RETURN INT;
END
*************************** 2. row ***************************
name: pkg1
type: PACKAGE BODY
body: AS
FUNCTION f1() RETURN INT AS
BEGIN
RETURN 1;
END;
BEGIN
END
2 rows in set (0.002 sec)