commit | 3fdf8e4b8ca042157b020f0203aca2eea837849f | [log] [tgz] |
---|---|---|
author | Sean Griffin <sean@seantheprogrammer.com> | Sun Jan 07 06:26:29 2018 -0700 |
committer | Sean Griffin <sean@seantheprogrammer.com> | Sun Jan 07 06:26:29 2018 -0700 |
tree | 132953166e5a6eba30c7d6ecda28314b3b3d9596 | |
parent | acdf9ad28fbca0b077e53becc44dd0874b7f7755 [diff] |
Call `mysql_stmt_execute` before `mysql_stmt_result_metadata` Unlike PostgreSQL, we don't tell MySQL the types of the bind parameters when we prepare the statement. Instead, we do it at the point where the query is executed. That means that unless we've executed the query, MySQL cannot possibly know the return type of a query where there is a bind parameter in the select statement. This fixes the problem by moving the call to `mysql_stmt_result_metadata` to after the statement has been executed, but before the data has been loaded into the buffers.
API Documentation: latest release – master branch
Diesel gets rid of the boilerplate for database interaction and eliminates runtime errors without sacrificing performance. It takes full advantage of Rust's type system to create a low overhead query builder that “feels like Rust.”
Find our extensive Getting Started tutorial at https://diesel.rs/guides/getting-started. Guides on more specific features are coming soon.
Anyone who interacts with Diesel in any space, including but not limited to this GitHub repository, must follow our code of conduct.
Licensed under either of these:
Unless you explicitly state otherwise, any contribution you intentionally submit for inclusion in the work, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.