We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 264839d commit b6ef157Copy full SHA for b6ef157
lib/connection-parameters.js
@@ -22,7 +22,9 @@ var parse = function(str) {
22
var result = url.parse(str);
23
var config = {};
24
config.host = result.hostname;
25
- config.database = result.pathname ? result.pathname.slice(1) : null;
+ // not sure if postgres allows symbols in database names
26
+ // but we should allow them just in case
27
+ config.database = result.pathname ? decodeURI(result.pathname.slice(1)) : null;
28
var auth = (result.auth || ':').split(':');
29
config.user = auth[0];
30
config.password = auth[1];
0 commit comments