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 upCompilation with `infer_schema!` panics when table has column named `ops` #851
Comments
This comment has been minimized.
|
It's coming from the glob import on |
sgrif
added
the
bug
label
Apr 7, 2017
This comment has been minimized.
alanhdu
commented
Jun 5, 2017
|
FWIW I just ran into this but with a column named |
This comment has been minimized.
|
I don't think you're running into this issue. Diesel doesn't have any types or modules called |
This comment has been minimized.
alanhdu
commented
Jun 5, 2017
•
|
Huh... ok then, I've split the |
This comment has been minimized.
I'd like to work on this but I could use a hand getting started. Am I correct in thinking that diesel/diesel/src/macros/mod.rs Line 275 in 6b4013d Also, it looks like we're looking for imports of |
Ameobea commentedApr 6, 2017
•
edited
Somewhere in the macro expansion, there is code that imports
opsfrom within diesel. If a column in a database is namedops, this causes conflicts within the macro.I think that putting a note somewhere that this could happen may be enough; however, prefixing the internal variables or module names to something like
_table_opsor something similar would be a more permanent solution.