[CP] [to #57374270]fix bug, information_schema routines veiw should not display deleted info or same info twice.
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -15776,8 +15776,18 @@ def_table_schema(
|
|||||||
mysql.proc as mp
|
mysql.proc as mp
|
||||||
join oceanbase.__all_database a
|
join oceanbase.__all_database a
|
||||||
on mp.DB = a.DATABASE_NAME
|
on mp.DB = a.DATABASE_NAME
|
||||||
|
and a.in_recyclebin = 0
|
||||||
join oceanbase.__all_routine as r on mp.specific_name = r.routine_name
|
join oceanbase.__all_routine as r on mp.specific_name = r.routine_name
|
||||||
and r.DATABASE_ID = a.DATABASE_ID
|
and r.DATABASE_ID = a.DATABASE_ID
|
||||||
|
and
|
||||||
|
CAST(
|
||||||
|
CASE r.routine_type
|
||||||
|
WHEN 1 THEN 'PROCEDURE'
|
||||||
|
WHEN 2 THEN 'FUNCTION'
|
||||||
|
ELSE NULL
|
||||||
|
END
|
||||||
|
AS CHAR(9)
|
||||||
|
) = mp.type
|
||||||
left join oceanbase.__all_routine_param as rp on rp.subprogram_id = r.subprogram_id
|
left join oceanbase.__all_routine_param as rp on rp.subprogram_id = r.subprogram_id
|
||||||
and rp.tenant_id = r.tenant_id
|
and rp.tenant_id = r.tenant_id
|
||||||
and rp.routine_id = r.routine_id
|
and rp.routine_id = r.routine_id
|
||||||
|
|||||||
Reference in New Issue
Block a user