Skip to content

Commit

Permalink
Merge pull request #19 from andywhite37/auth-issue
Browse files Browse the repository at this point in the history
Fix for pg authentication issue in node 6+
  • Loading branch information
rickbergfalk committed May 19, 2016
2 parents db6265e + edc733d commit 301ee29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/create-common-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module.exports = function (config) {

} else if (config.driver === 'pg' || config.driver === 'pg.js') {

commonClient.dbDriver = require('pg.js');
commonClient.dbDriver = require('pg');

// for backward compatibility, allows to specify port within host
if (config.port) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"mssql": "2.x.x",
"mysql": "2.x.x",
"newline": "0.0.3",
"pg.js": "4.x.x"
"pg": "^4.5.5"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 301ee29

Please sign in to comment.