We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45d4233 commit 1f27b83Copy full SHA for 1f27b83
lib/index.js
@@ -456,7 +456,7 @@ function parseOptions(uri, options) {
456
host,
457
port,
458
path : o.path || host.indexOf('/') > -1 && host + '/.s.PGSQL.' + port,
459
- database : o.database || o.db || (url.pathname || '').slice(1) || env.PGDATABASE || 'postgres',
+ database : o.database || o.db || (url.pathname || '').slice(1) || env.PGDATABASE || 'postgres',
460
user : o.user || o.username || auth[0] || env.PGUSERNAME || os.userInfo().username,
461
pass : o.pass || o.password || auth[1] || env.PGPASSWORD || '',
462
max : o.max || url.query.max || Math.max(1, os.cpus().length),
0 commit comments