diesel-rs/diesel

Compilation with `infer_schema!` panics when table has column named `ops`

Open

#851 建立於 2017年4月6日

在 GitHub 查看
 (5 留言) (0 反應) (1 負責人)Rust (12,054 star) (1,003 fork)batch import
assignedbughelp wanted

描述

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.

貢獻者指南

Compilation with `infer_schema!` panics when table has column named `ops` · diesel-rs/diesel#851 | Good First Issue