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

Fix: allow all mysql query options #340

Merged
merged 2 commits into from
Oct 19, 2020
Merged

Fix: allow all mysql query options #340

merged 2 commits into from
Oct 19, 2020

Conversation

haversnail-cbs
Copy link
Contributor

Issue #, if available:
N/A (figured I'd just submit the PR vs. open another issue) 😉

Description of changes:
Updates the mysql package to support all query options by passing along the entire object to the original call. This fixes a bug where any additional options provided when calling query (e.g. typeCast, nestTables, etc.) are getting ignored.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@haversnail-cbs haversnail-cbs changed the title Patch 1 Fix: allow all mysql query options Oct 8, 2020
@haversnail-cbs haversnail-cbs reopened this Oct 8, 2020
Copy link
Contributor

@willarmiros willarmiros left a comment

Choose a reason for hiding this comment

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

Thanks so much for the contribution! This is a great generalization of the PR we had to include the timeout parameter a while back. Just want to do a sanity check.

packages/mysql/lib/mysql_p.js Show resolved Hide resolved
Copy link
Contributor

@willarmiros willarmiros left a comment

Choose a reason for hiding this comment

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

Thanks for the explanation!

@willarmiros willarmiros merged commit 711b008 into aws:master Oct 19, 2020
@haversnail-cbs haversnail-cbs deleted the patch-1 branch October 20, 2020 23:51
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.

3 participants