We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbe7cac commit cce5ad7Copy full SHA for cce5ad7
lib/index.js
@@ -460,7 +460,7 @@ function parseOptions(a, b) {
460
port,
461
path : o.path || host.indexOf('/') > -1 && host + '/.s.PGSQL.' + port,
462
database : o.database || o.db || (url.pathname || '').slice(1) || env.PGDATABASE || 'postgres',
463
- user : o.user || o.username || auth[0] || env.PGUSERNAME || os.userInfo().username,
+ user : o.user || o.username || auth[0] || env.PGUSERNAME || env.PGUSER || os.userInfo().username,
464
pass : o.pass || o.password || auth[1] || env.PGPASSWORD || '',
465
max : o.max || url.query.max || Math.max(1, os.cpus().length),
466
types : o.types || {},
0 commit comments