@@ -144,7 +144,7 @@ describe('captureMySQL', function() {
144
144
query . call ( connectionObj , 'sql here' , [ 1 ] ) ;
145
145
146
146
stubDataInit . should . have . been . calledWithExactly ( undefined , undefined , config . user ,
147
- config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
147
+ 'mysql://' + config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
148
148
stubAddSql . should . have . been . calledWithExactly ( sinon . match . instanceOf ( SqlData ) ) ;
149
149
} ) ;
150
150
@@ -256,7 +256,7 @@ describe('captureMySQL', function() {
256
256
query . call ( connectionObj , 'sql here' , [ 1 ] ) ;
257
257
258
258
stubDataInit . should . have . been . calledWithExactly ( process . env . MYSQL_DATABASE_VERSION , process . env . MYSQL_DRIVER_VERSION ,
259
- conParam . user , conParam . host + ':' + conParam . port + '/' + conParam . database , 'statement' ) ;
259
+ conParam . user , 'mysql://' + conParam . host + ':' + conParam . port + '/' + conParam . database , 'statement' ) ;
260
260
stubAddSql . should . have . been . calledWithExactly ( sinon . match . instanceOf ( SqlData ) ) ;
261
261
stubAddSql . should . have . been . calledWithExactly ( sinon . match . has ( 'sanitized_query' , 'sql here' ) ) ;
262
262
} ) ;
@@ -269,7 +269,7 @@ describe('captureMySQL', function() {
269
269
query . call ( connectionObj , 'sql here' , [ 1 ] ) ;
270
270
271
271
stubDataInit . should . have . been . calledWithExactly ( process . env . MYSQL_DATABASE_VERSION , process . env . MYSQL_DRIVER_VERSION ,
272
- conParam . user , conParam . host + ':' + conParam . port + '/' + conParam . database , 'statement' ) ;
272
+ conParam . user , 'mysql://' + conParam . host + ':' + conParam . port + '/' + conParam . database , 'statement' ) ;
273
273
stubAddSql . should . have . been . calledWithExactly ( sinon . match . instanceOf ( SqlData ) ) ;
274
274
sinon . assert . match ( sinon . match , {
275
275
'sanitized_query' : undefined
@@ -349,7 +349,7 @@ describe('captureMySQL', function() {
349
349
350
350
resolvedConn . query ( 'sql here' ) . then ( function ( ) {
351
351
stubDataInit . should . have . been . calledWithExactly ( undefined , undefined , config . user ,
352
- config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
352
+ 'mysql://' + config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
353
353
stubAddSql . should . have . been . calledWithExactly ( sinon . match . instanceOf ( SqlData ) ) ;
354
354
} ) ;
355
355
} ) ;
@@ -460,7 +460,7 @@ describe('captureMySQL', function() {
460
460
query . call ( connectionObj , 'sql here' , [ 1 ] ) ;
461
461
462
462
stubDataInit . should . have . been . calledWithExactly ( undefined , undefined , config . user ,
463
- config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
463
+ 'mysql://' + config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
464
464
stubAddSql . should . have . been . calledWithExactly ( sinon . match . instanceOf ( SqlData ) ) ;
465
465
} ) ;
466
466
@@ -556,7 +556,7 @@ describe('captureMySQL', function() {
556
556
query . call ( connectionObj , 'sql here' , [ 1 ] ) ;
557
557
558
558
stubDataInit . should . have . been . calledWithExactly ( undefined , undefined , config . user ,
559
- config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
559
+ 'mysql://' + config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
560
560
stubAddSql . should . have . been . calledWithExactly ( sinon . match . instanceOf ( SqlData ) ) ;
561
561
} ) ;
562
562
@@ -703,7 +703,7 @@ describe('captureMySQL', function() {
703
703
query . call ( connectionObj , 'sql here' , [ 1 ] ) ;
704
704
705
705
stubDataInit . should . have . been . calledWithExactly ( undefined , undefined , config . user ,
706
- config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
706
+ 'mysql://' + config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
707
707
stubAddSql . should . have . been . calledWithExactly ( sinon . match . instanceOf ( SqlData ) ) ;
708
708
} ) ;
709
709
0 commit comments