mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 13:46:00 +00:00
fix: add join on schema for mysql params query
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
module.exports = `
|
||||
SELECT
|
||||
SELECT DISTINCT
|
||||
r.ROUTINE_SCHEMA AS schemaName,
|
||||
r.SPECIFIC_NAME AS pureName,
|
||||
CASE
|
||||
WHEN COALESCE(NULLIF(PARAMETER_MODE, ''), 'RETURN') = 'RETURN' THEN 'Return'
|
||||
@@ -16,7 +17,7 @@ FROM
|
||||
JOIN
|
||||
information_schema.ROUTINES r
|
||||
ON
|
||||
p.SPECIFIC_NAME = r.SPECIFIC_NAME
|
||||
p.SPECIFIC_NAME = r.SPECIFIC_NAME AND r.ROUTINE_SCHEMA = p.SPECIFIC_SCHEMA
|
||||
WHERE
|
||||
r.ROUTINE_SCHEMA = '#DATABASE#' AND r.ROUTINE_NAME =OBJECT_ID_CONDITION
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user