Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FromSql is not implemented anymore on 0.4.0, but on 0.3.0 #12

Closed
fschutt opened this issue Mar 21, 2017 · 1 comment
Closed

FromSql is not implemented anymore on 0.4.0, but on 0.3.0 #12

fschutt opened this issue Mar 21, 2017 · 1 comment

Comments

@fschutt
Copy link
Contributor

fschutt commented Mar 21, 2017

The example doesn't work anymore (it worked a few weeks ago). It seems that the 0.4.0 version is missing the FromSQL trait for basically any type.

I just get errors a la:

the trait "graphics::renderer::postgres::types::FromSql" is not implemented for "types::osm_tuple::postgis::ewkb::Point"

I noticed that the 0.3.0 version had postgres::FromSql implemented: https://docs.rs/postgis/0.3.0/postgis/ewkb/struct.Point.html

The 0.4.0 has it too, but there seems to be something wrong - the trait isn't marked violet, as usual: https://docs.rs/postgis/0.4.0/postgis/ewkb/struct.Point.html

Plus, well, the examples as well as any code that worked with 0.3.0, doesn't compile anymore. It is impossible to get any geometry types out of a postgres database without this trait being implemented.

@fschutt
Copy link
Contributor Author

fschutt commented Mar 21, 2017

Sorry for the issue. I had the postgres crate defined expicitly in my Cargo.toml - in which it still was set to "0.13.0". Setting it to "0.14.0" fixed the issue. I will probably remove this entry in the future to always stay updated.

@fschutt fschutt closed this as completed Mar 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant