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

infer_schema! is treating PostgreSQL views as tables. #373

Closed
cascalheira opened this Issue Jul 5, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@cascalheira

cascalheira commented Jul 5, 2016

First of all, thank you all for your great work on Diesel!

I am using PostGIS in a Postgres database and i was just starting to try to use diesel to access it. The main problem so far is if i use infer_schema! i get this error:

error: table geography_columns has 0 primary keys, only one is currently supported

It seems that infer_schema! is treating views as if they were tables. Is there any work around for this?
Unfortunately my rust-fu is not yet strong enough for me to help with a proper solution :)

Edit: Just submitted a pull request that solves this issue: #374

cascalheira added a commit to cascalheira/diesel that referenced this issue Jul 5, 2016

cascalheira pushed a commit to cascalheira/diesel that referenced this issue Jul 12, 2016

cascalheira pushed a commit to cascalheira/diesel that referenced this issue Jul 12, 2016

cascalheira pushed a commit to cascalheira/diesel that referenced this issue Jul 12, 2016

killercup added a commit to killercup/diesel that referenced this issue Sep 9, 2016

killercup added a commit to killercup/diesel that referenced this issue Sep 14, 2016

@sgrif sgrif closed this in 97fac13 Sep 16, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment