Skip to content

query.stream()._read without connection is a no-op #689

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

Merged
merged 2 commits into from
Jan 16, 2014

Conversation

grncdr
Copy link
Contributor

@grncdr grncdr commented Dec 26, 2013

Fixes errors when .stream() is called on a query without a
connection (e.g. a query created using createQuery).

@felixge
Copy link
Collaborator

felixge commented Dec 27, 2013

Thanks! Can you provide a unit test for this that shows the problem?

@grncdr
Copy link
Contributor Author

grncdr commented Dec 27, 2013

I rebased on top of commit that adds the test, if you checkout 5b06d1b you can see it failing.

grncdr and others added 2 commits January 15, 2014 08:53
Fixes errors when `.stream()` is called on a query without a
connection (e.g. a query created using `createQuery`).
@grncdr
Copy link
Contributor Author

grncdr commented Jan 15, 2014

I've just rebased this off of master so that tests should stop failing due to not having ReadableStream, not sure if that will retrigger a Travis CI build or not though..

@sidorares
Copy link
Member

👍 - looks good

felixge added a commit that referenced this pull request Jan 16, 2014
query.stream()._read without connection is a no-op
@felixge felixge merged commit aa3518c into mysqljs:master Jan 16, 2014
@felixge
Copy link
Collaborator

felixge commented Jan 16, 2014

💖 thx

@grncdr
Copy link
Contributor Author

grncdr commented Jan 16, 2014

No thank you! 🍺

On 15 January, 2014 at 11:20:27 PM, Felix Geisendörfer ([email protected]) wrote:

thx


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants