File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,10 @@ ConnectionParameters.prototype.getLibpqConnectionString = function(cb) {
77
77
if ( this . database ) {
78
78
params . push ( "dbname='" + this . database + "'" ) ;
79
79
}
80
- if ( this . isDomainSocket ) {
80
+ if ( this . host ) {
81
81
params . push ( "host=" + this . host ) ;
82
+ }
83
+ if ( this . isDomainSocket ) {
82
84
return cb ( null , params . join ( ' ' ) ) ;
83
85
}
84
86
if ( this . client_encoding ) {
Original file line number Diff line number Diff line change 1
1
var helper = require ( __dirname + '/../test-helper' ) ;
2
2
3
- if ( helper . args . native ) {
4
- // do not run testwith native bindings,
5
- // see issue #475 (https://github.com/brianc/node-postgres/issues/475)
6
- process . exit ( ) ;
7
- }
8
-
9
3
// Path to the password file
10
4
var passfile = __dirname + '/heroku.pgpass' ;
11
5
12
6
// Export the path to the password file
13
7
process . env . PGPASSFILE = passfile ;
14
8
15
- // Do a chmod 660, because git doesn't track thosepermissions
9
+ // Do a chmod 660, because git doesn't track those permissions
16
10
require ( 'fs' ) . chmodSync ( passfile , 384 ) ;
17
11
18
12
var pg = helper . pg ;
You can’t perform that action at this time.
0 commit comments