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

For calling stored procedure, why does client.query() and client.execute() only return result of first query? (unlike nodejs mysql2 which gives result of all queries) #129

Open
LalitSinghRana opened this issue Jul 30, 2022 · 1 comment

Comments

@LalitSinghRana
Copy link

I wrote a very simple app in both node and deno. I'm calling same store procedure in both (which is just 2 select statement returning 2 rows each).

node mysql2 client.query() gives array containing 2 array result. But deno mysql client.query() and client.execute() both only give result for first select statement.

Any idea why this is happening?

@suchislife801
Copy link

Unfortunately, the Deno MySQL module does not have built-in support for handling multiple result sets from stored procedures. To work around this limitation, you can split your stored procedure into multiple procedures, each returning a single result set, and then call each of them sequentially in your code.

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