Skip to content

Commit

Permalink
Possible fix for pg issue in node 6.x
Browse files Browse the repository at this point in the history
- There is a change in `Buffer` in node 6 that causes an issue with
  authentication in the `pg`/`pg.js` modules.
- See brianc/node-postgres#1018
- Which references: brianc/node-postgres#1000
- This commit changes the pg library dependency to the version that
  contains the fix for this issue.
  • Loading branch information
andywhite37 committed May 16, 2016
1 parent db6265e commit edc733d
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 edc733d

Please sign in to comment.