-
Notifications
You must be signed in to change notification settings - Fork 134
Description
When debugging an issue in my application that uses mysql_async, I ran into a problem where I get different result by calling query and prep_exec.
I have reduced the program to the following to reproduce the issue:
Cargo.toml: https://gist.github.com/wqfish/7dddb18da14682556e5c33639eeb7b20
main.rs: https://gist.github.com/wqfish/c4a69477b90880c2c5731ce8f90d4747
The content of the db is pretty simple. The db mydb has a single table my_table that has two rows in it: https://gist.github.com/wqfish/21125e61fc305ba2958083fc795dbef7
The problem
With this program I can successfully load the two rows from mysql. However, if I comment out line 58 in main.rs and use line 57 instead, I only get one of the two rows. So changing prep_exec to query caused the result to be different.
Does this feel like a bug or I'm missing something?