fix: remove schema from firebird

This commit is contained in:
Pavel
2025-05-15 13:22:01 +02:00
parent 3e0f834796
commit 06055a7c4c
10 changed files with 16 additions and 29 deletions

View File

@@ -1,6 +1,5 @@
module.exports = `
SELECT
TRIM(F.RDB$OWNER_NAME) AS "owningObjectSchemaName", -- Schema of the function this parameter belongs to
TRIM(FA.RDB$FUNCTION_NAME) AS "owningObjectName", -- Name of the function this parameter belongs to
TRIM(FA.RDB$ARGUMENT_NAME) AS "parameterName",
FFLDS.RDB$FIELD_TYPE AS "dataTypeCode", -- SQL data type code from RDB$FIELDS
@@ -15,8 +14,7 @@ SELECT
FA.RDB$ARGUMENT_POSITION AS "position", -- 0-based index for arguments
-- Fields for ParameterInfo.NamedObjectInfo
TRIM(FA.RDB$FUNCTION_NAME) AS "pureName", -- NamedObjectInfo.pureName for the parameter
TRIM(F.RDB$OWNER_NAME) AS "schemaName" -- NamedObjectInfo.schemaName (owner of the function)
TRIM(FA.RDB$FUNCTION_NAME) AS "pureName" -- NamedObjectInfo.pureName for the parameter
FROM
RDB$FUNCTION_ARGUMENTS FA
@@ -27,5 +25,5 @@ JOIN
WHERE
COALESCE(F.RDB$SYSTEM_FLAG, 0) = 0 -- Filter for user-defined functions
ORDER BY
"owningObjectSchemaName", "owningObjectName", "position";
"owningObjectName", "position";
`;