From 351b66e145cf43ccf951410c679808a72c6ad30b Mon Sep 17 00:00:00 2001 From: Mikhail <44769346+mtseluiko@users.noreply.github.com> Date: Tue, 4 Oct 2022 11:36:13 +0300 Subject: [PATCH] Hck 2392 snowflake re issue with handling udf (#75) --- reverse_engineering/helpers/snowflakeHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reverse_engineering/helpers/snowflakeHelper.js b/reverse_engineering/helpers/snowflakeHelper.js index 2e39af14..4297e2a3 100644 --- a/reverse_engineering/helpers/snowflakeHelper.js +++ b/reverse_engineering/helpers/snowflakeHelper.js @@ -981,7 +981,7 @@ const getFunctions = async (dbName, schemaName) => { const rows = await execute(`select * from "${removeQuotes(dbName)}".information_schema.functions where FUNCTION_SCHEMA='${schemaName}'`); return rows.map(row => { - const functionLanguage = row['ARGUMENT_SIGNATURE'] === '()' ? '' : row['ARGUMENT_SIGNATURE']; + const functionArguments = row['ARGUMENT_SIGNATURE'] === '()' ? '' : row['ARGUMENT_SIGNATURE']; return { name: row['FUNCTION_NAME'],