Skip to content

Weird result when using query instead of prep_exec #107

@wqfish

Description

@wqfish

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions