Skip to content

Commit

Permalink
fix: exec no arg fn
Browse files Browse the repository at this point in the history
  • Loading branch information
Elin Angelow committed Feb 2, 2024
1 parent 048a8cc commit 2fcce0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/postgres/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ module.exports = async(config) => {
})();
// https://www.postgresql.org/docs/current/catalog-pg-proc.html
const buildArgs = (argnames, argmodesText) => {
if (!argmodesText && !argnames) {
return {input: [], other: [], all: []};
}
const argmodes = (!argmodesText && argnames.map(() => 'i')) || argmodesText
.split('{').join('')
.split('}').join('')
Expand Down

0 comments on commit 2fcce0c

Please sign in to comment.