Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upWeird error with the f32 type, is real on postgre but my model doesn't work #679
Comments
This comment has been minimized.
|
You're certain that column is the issue? Nothing looks out of place to me. The only thing that jumps out to me that could be the issue is a mismatch between chrono versions. Are you using Chrono 0.2.x and Diesel 0.10.x? |
This comment has been minimized.
|
(Also this isn't related to your bug, but, you probably shouldn't use floats for currency. |
This comment has been minimized.
|
I attempted to reproduce your issue and was unable to do so. The code that I used to try to reproduce is at https://gist.github.com/sgrif/6a1a7af32274b19f43cad5c83131e811. This code compiled successfully. Can you please provide additional information that I can use to reproduce, preferably in the same form as that gist? |
sgrif
added
the
missing reproduction steps
label
Feb 11, 2017
This comment has been minimized.
freinn
commented
Feb 11, 2017
•
|
Thanks for the caring in your answer, and your consideration. I've uploaded my private git repo to github so you can test it easily, here. My code organization is poor. I have to split it into modules but I prefer to have all working before. |
freinn commentedFeb 11, 2017
Hi! I have this working struct for a model:
It runs fine and I can query my postgresql table, but I'm having problems with the last field of this struct:
The field precio is a real on postgresql:
And when I try to do a simple query (equivalent to select * from cuadros) I get a compiler error:
What I'm doing wrong?