Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added support for mysql2 v3.11.5 #1467

Merged
merged 4 commits into from
Dec 3, 2024
Merged

feat: added support for mysql2 v3.11.5 #1467

merged 4 commits into from
Dec 3, 2024

Conversation

instanacd
Copy link
Contributor

@instanacd instanacd commented Nov 29, 2024

In version 3.11.5 of the mysql2 library, some changes were introduced in the internal structure of the library. Specifically:

  • The query and execute methods were moved to BaseConnection in lib/base/connection.js.
  • The getConnection, query, and execute methods were relocated to BasePool in lib/base/pool.js.

Updated instrumentation logic to:

  • Check if the Connection prototype derives from BaseConnection for newer versions (v3.11.5+).
  • Ensure correct handling of the Pool class with changes to the BasePool class.

ref INSTA-20850

reference PR sidorares/node-mysql2#3081

@instanacd instanacd requested a review from a team as a code owner November 29, 2024 18:19
@aryamohanan aryamohanan force-pushed the currency-bot branch 2 times, most recently from ef485da to 62635ca Compare December 2, 2024 06:58
@aryamohanan
Copy link
Contributor

Skipped the Couchbase update from 4.4.3 to 4.4.4, as it is addressing in the PR #1466

aryamohanan
aryamohanan previously approved these changes Dec 2, 2024
Copy link
Contributor

@aryamohanan aryamohanan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, waiting for the test to pass

@aryamohanan aryamohanan self-assigned this Dec 2, 2024
@aryamohanan aryamohanan dismissed their stale review December 2, 2024 08:19

Tests are failing, need to check

@aryamohanan aryamohanan changed the title [Currency Bot] Bumped patch/minor dependencies build: bumped mysql2 from 3.11.4 to 3.11.5 Dec 2, 2024
@aryamohanan aryamohanan changed the title build: bumped mysql2 from 3.11.4 to 3.11.5 fix(mysql2): handled mysql2 v3.11.5 class structure changes Dec 3, 2024
Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add multi testing for "3.11.4" and "^3.11.5"?

@aryamohanan aryamohanan requested a review from kirrg001 December 3, 2024 10:25
Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One issue needs to be fixed. Otherwise pre-approve. LGTM!

@kirrg001
Copy link
Contributor

kirrg001 commented Dec 3, 2024

Please use:

fix(mysql2): handled mysql2 v3.11.5 class structure changes #1467

feat(mysql2): added support for v3.11.5

or

feat: added support for mysql2 v3.11.5

@aryamohanan aryamohanan changed the title fix(mysql2): handled mysql2 v3.11.5 class structure changes feat: added support for mysql2 v3.11.5 Dec 3, 2024
@aryamohanan aryamohanan merged commit 45414f5 into main Dec 3, 2024
1 check passed
@kirrg001 kirrg001 deleted the currency-bot branch December 3, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants