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: mysql driver query streaming #5036

Merged
merged 1 commit into from
Nov 24, 2019
Merged

fix: mysql driver query streaming #5036

merged 1 commit into from
Nov 24, 2019

Conversation

constb
Copy link
Contributor

@constb constb commented Nov 5, 2019

Mysql driver's connection.query() returns Query object which is an EventEmitter but not a ReadableStream. In order to get a stream one needs to call .stream() on it.

Fixes #5035

@pleerock
Copy link
Member

Thanks! Can we have a test that will make sure we won't have this issue again in the future?

@constb
Copy link
Contributor Author

constb commented Nov 23, 2019

I'm afraid I don't have enough experience writing tests. I don't even know how to run ones that already exist in the repo. :(

@pleerock pleerock merged commit aff2f56 into typeorm:master Nov 24, 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.

MySQL driver: incorrect return value in QueryRunner.stream()
2 participants