Skip to content

Commit

Permalink
Merge 6a909b3 into f66efd8
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagami committed Nov 24, 2014
2 parents f66efd8 + 6a909b3 commit 58df933
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/dialects/postgres/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ Client_PG.prototype.dialect = 'postgresql';
Client_PG.prototype.initDriver = function() {
pg = pg || (function() {
try {
return require('pg');
var pgn = require('pg');
try {
return pgn.native || pgn;
} catch (e) {
return pgn;
}
} catch (e) {
return require('pg.js');
}
Expand Down

0 comments on commit 58df933

Please sign in to comment.