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 };