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

async prepared statements #829

Closed
fw42 opened this issue Mar 2, 2017 · 3 comments
Closed

async prepared statements #829

fw42 opened this issue Mar 2, 2017 · 3 comments

Comments

@fw42
Copy link

fw42 commented Mar 2, 2017

Is it currently possible to run prepared statements asynchronously?

It seems like neither the prepare nor the execute methods take a async parameter (like query does) and setting query_options[:async] = true also doesn't seem to have an effect.

Is this a known (intended?) limitation?

@fw42
Copy link
Author

fw42 commented Mar 10, 2017

Possibly relevant: https://bugs.mysql.com/bug.php?id=60470

@sodabrew
Copy link
Collaborator

This should be resolved in mysql2 0.5 with PR #912 and improved by PR #958.

@sodabrew
Copy link
Collaborator

sodabrew commented Apr 11, 2018

So async is not supported, but :stream is now supported for prepared statement results in mysql2 0.5.x.

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

No branches or pull requests

2 participants