Skip to content

Commit

Permalink
Merge pull request #1309 from freshsun/patch-1
Browse files Browse the repository at this point in the history
update index.js to work with aliyun rds
  • Loading branch information
elhigu committed Mar 24, 2016
2 parents c8819ab + b34d03c commit df5f46a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dialects/postgres/index.js
Expand Up @@ -93,7 +93,7 @@ assign(Client_PG.prototype, {
return new Promise(function(resolver, rejecter) {
connection.query('select version();', function(err, resp) {
if (err) return rejecter(err);
resolver(/^PostgreSQL (.*?) /.exec(resp.rows[0].version)[1]);
resolver(/^PostgreSQL (.*?)( |$)/.exec(resp.rows[0].version)[1]);
});
});
},
Expand Down

0 comments on commit df5f46a

Please sign in to comment.