-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added support for mysql2 v3.11.5 (#1467)
ref INSTA-20850 Co-authored-by: Arya Mohanan <[email protected]>
- Loading branch information
1 parent
e38a15a
commit 45414f5
Showing
6 changed files
with
115 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -195,7 +195,8 @@ | |
"mssql": "^11.0.1", | ||
"mssql-v10": "npm:mssql@^10.0.4", | ||
"mysql": "^2.18.1", | ||
"mysql2": "^3.11.4", | ||
"mysql2": "^3.11.5", | ||
"mysql2-v3114": "npm:[email protected]", | ||
"nan": "^2.22.0", | ||
"nats": "^2.28.2", | ||
"nats-v1": "npm:nats@^1.4.12", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/collector/test/tracing/database/mysql/mockVersion.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* (c) Copyright IBM Corp. 2024 | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const mock = require('mock-require'); | ||
const MYSQL2_VERSION = process.env.MYSQL2_VERSION; | ||
const MYSQL2_REQUIRE = process.env.MYSQL2_VERSION === 'latest' ? 'mysql2' : `mysql2-${MYSQL2_VERSION}`; | ||
|
||
if (MYSQL2_REQUIRE !== 'mysql2') { | ||
mock('mysql2', MYSQL2_REQUIRE); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters