File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ var parse = function(str) {
19
19
var result = url . parse ( str ) ;
20
20
var config = { } ;
21
21
config . host = result . hostname ;
22
- config . database = result . pathname ? result . pathname . slice ( 1 ) : null
22
+ config . database = result . pathname ? result . pathname . slice ( 1 ) : null ;
23
23
var auth = ( result . auth || ':' ) . split ( ':' ) ;
24
24
config . user = auth [ 0 ] ;
25
25
config . password = auth [ 1 ] ;
@@ -31,7 +31,7 @@ var ConnectionParameters = function(config) {
31
31
config = typeof config == 'string' ? parse ( config ) : ( config || { } ) ;
32
32
this . user = val ( 'user' , config ) ;
33
33
this . database = val ( 'database' , config ) ;
34
- this . port = parseInt ( val ( 'port' , config ) ) ;
34
+ this . port = parseInt ( val ( 'port' , config ) , 10 ) ;
35
35
this . host = val ( 'host' , config ) ;
36
36
this . password = val ( 'password' , config ) ;
37
37
this . binary = val ( 'binary' , config ) ;
You can’t perform that action at this time.
0 commit comments