From d96907ca2de344114e3edae52843f6258468934b Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Sat, 3 Jul 2021 11:39:57 +0200 Subject: [PATCH] fix(PostgreSQL): error opening setting tab for some stored routines --- src/common/customizations/postgresql.js | 2 +- src/main/libs/clients/PostgreSQLClient.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/customizations/postgresql.js b/src/common/customizations/postgresql.js index d3ac99e6..14609113 100644 --- a/src/common/customizations/postgresql.js +++ b/src/common/customizations/postgresql.js @@ -35,7 +35,7 @@ module.exports = { foreigns: true, nullable: true, tableArray: true, - procedureSql: '$BODY$\r\n\r\n$BODY$', + procedureSql: '$procedure$\r\n\r\n$procedure$', procedureContext: true, procedureLanguage: true, functionSql: '$function$\r\n\r\n$function$', diff --git a/src/main/libs/clients/PostgreSQLClient.js b/src/main/libs/clients/PostgreSQLClient.js index d828df7a..acf3d620 100644 --- a/src/main/libs/clients/PostgreSQLClient.js +++ b/src/main/libs/clients/PostgreSQLClient.js @@ -624,7 +624,7 @@ export class PostgreSQLClient extends AntaresCore { const parameters = results.rows.map(row => { return { name: row.parameter_name, - type: row.data_type.toUpperCase(), + type: row.data_type ? row.data_type.toUpperCase() : '', length: '', context: row.parameter_mode };