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: keep Query instances passed to connection.query intact #137

Merged
merged 1 commit into from
Aug 16, 2019

Conversation

M-TGH
Copy link
Contributor

@M-TGH M-TGH commented May 9, 2019

Issue #, if available: #136

Description of changes:

Preserves the first argument of resolveArguments when it is an Object and no callback(2nd argument) has been provided. This because in the case described in #136 (comment) it's relying on the eventEmitter that's in the Mysql.Query instance provided in the first argument.

Since resolveArguments part where the first argument is an object part was added in #62, I would like to ask @jafl whether he remembers what case (presumably in mysql2) this was added, so we can check whether that would still pass as well.

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

@jafl
Copy link
Contributor

jafl commented May 9, 2019

I think I simply missed that case.

@srprash srprash merged commit 88d5b45 into aws:master Aug 16, 2019
@willarmiros willarmiros mentioned this pull request Aug 26, 2019
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