Skip to content

Commit

Permalink
fix(PostgreSQL): error opening setting tab for some stored routines
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Jul 3, 2021
1 parent 75bbd5f commit d96907c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/customizations/postgresql.js
Expand Up @@ -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$',
Expand Down
2 changes: 1 addition & 1 deletion src/main/libs/clients/PostgreSQLClient.js
Expand Up @@ -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
};
Expand Down

0 comments on commit d96907c

Please sign in to comment.