Bug #106950 | routine_definition in information_schema shows bad info with backticks | ||
---|---|---|---|
Submitted: | 8 Apr 2022 1:13 | Modified: | 8 Apr 2022 13:29 |
Reporter: | Charles Lane | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Information schema | Severity: | S2 (Serious) |
Version: | 8.0, 5.7 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | procedure backticks |
[8 Apr 2022 1:13]
Charles Lane
[8 Apr 2022 2:37]
huahua xu
Hi, Charles Lane, For "show create procedure xxx", its field 'create procedure' comes from mysql.proc.body. For "select routine_definition from information_schema.routines", its field 'routine_definition' comes from mysql.proc.body_utf8.
[8 Apr 2022 11:34]
MySQL Verification Team
Hello Charles Lane, Thank you for the report and feedback. regards, Umesh
[8 Apr 2022 13:29]
Charles Lane
For Mysql 8.0, there is no mysql.proc table to use as an alternative to information_schema.routines.
[10 Apr 2022 5:41]
huahua xu
Yes, you are right. For Mysql 8.0, the table mysql.proc is replace by mysql.routines, and it is a data dictionary table which is invisible to the outside.
[10 Apr 2022 5:45]
huahua xu
in addition, show create table information_schema.routines please. You will find that the field `ROUTINE_DEFINITION` references to `routines`.`definition_utf8`