blackbeam / rust-mysql-simple

Mysql client library implemented in rust.
Apache License 2.0
659 stars 144 forks source link

query_map maps to incorrect columns #270

Closed ghost closed 3 years ago

ghost commented 3 years ago

Query map function maps to incorrect columns of the same type.

I'm sure it has something to do with the fact that tp and sl are both f64.

DB Table image image

Struct image

Query image image

Result image

ghost commented 3 years ago

As I thought, it has something to do with the default order of columns. I'll just change the column order or do this https://github.com/blackbeam/rust-mysql-simple/issues/137