不要怂,就是干,撸起袖子干!

Commit e763b0de by Mick Hansen

Merge pull request #1946 from joeylgutierrez/pg_ssl_956

[BUG] 956: Connection failing using SSL with PostgresSql
2 parents 4fadfb07 6aad438c
Showing with 3 additions and 2 deletions
......@@ -590,7 +590,7 @@ module.exports = (function() {
},
databaseConnectionUri: function(config) {
var template = '<%= protocol %>://<%= user %>:<%= password %>@<%= host %><% if(port) { %>:<%= port %><% } %>/<%= database %>';
var template = '<%= protocol %>://<%= user %>:<%= password %>@<%= host %><% if(port) { %>:<%= port %><% } %>/<%= database %><% if(ssl) { %>?ssl=<%= ssl %><% } %>';
return Utils._.template(template)({
user: config.username,
......@@ -598,7 +598,8 @@ module.exports = (function() {
database: config.database,
host: config.host,
port: config.port,
protocol: config.protocol
protocol: config.protocol,
ssl: config.ssl
});
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!