diesel-rs/diesel

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

开放

#851 创建于 2017年4月6日

 (5 条评论) (0 个反应) (1 位负责人)Rust (1,003 个派生)batch import
assignedbughelp wanted

仓库指标

星标
 (12,054 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南