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 upinfer_table_from_schema! panics when that table is in a non-default schema #646
Comments
This comment has been minimized.
|
Yes, this has been fixed on master. It's a serious enough bug to warrant a new release. I will cherry-pick it and release a bugfix release with it. |
This comment has been minimized.
|
I've released v0.10.1 which includes a fix for this issue. For posterity, this was fixed by e0272a4 |
sgrif
closed this
Feb 8, 2017
This comment has been minimized.
jasonl
commented
Feb 9, 2017
|
Thanks for the quick response! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jasonl commentedFeb 8, 2017
Using version 0.10.0:
The panic comes from:
https://github.com/diesel-rs/diesel/blob/v0.10.0/diesel_infer_schema/src/pg.rs#L131
Which is because (as far as I can see),
TableData.schemacan only ever beNoneas set at:https://github.com/diesel-rs/diesel/blob/v0.10.0/diesel_codegen/src/schema_inference.rs#L58
A brief look at
masterseems to suggest this might already be fixed, but I'll raise this issue anyway so that the developers are aware of it.This is being built on a recent nightly, but I'm not sure that's relevant.