diesel-rs/diesel
Auf GitHub ansehenCompilation with `infer_schema!` panics when table has column named `ops`
Open
#851 geöffnet am 6. Apr. 2017
assignedbughelp wanted
Repository-Metriken
- Stars
- (12.054 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 30T 16h) (30 gemergte PRs in 30 T)
Beschreibung
Somewhere in the macro expansion, there is code that imports ops from within diesel. If a column in a database is named ops, 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_ops or something similar would be a more permanent solution.