Skip to content

Pool.query now returns the Query object #830

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

Closed
wants to merge 2 commits into from
Closed

Pool.query now returns the Query object #830

wants to merge 2 commits into from

Conversation

kobim
Copy link

@kobim kobim commented May 28, 2014

Unlike Connection.query, Pool.query doesn't return the Query object. For debugging purposes, it's helpful for printing the formatted SQL after calling Pool.query.

@dougwilson
Copy link
Member

That is fine, thank you!

@dougwilson dougwilson added this to the 2.4 milestone May 28, 2014
@dougwilson dougwilson self-assigned this Jun 1, 2014
@dougwilson
Copy link
Member

I'm merging this and it looks like just retuning the object isn't that simple, because since the pool adds a callback, you cannot use the returned query in streaming mode, for example. I am re-working this.

@dougwilson dougwilson closed this in 2e6022f Jul 5, 2014
seangarner pushed a commit to seangarner/node-mysql that referenced this pull request May 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants