diesel-rs/diesel

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

Open

#851 aberto em 6 de abr. de 2017

Ver no GitHub
 (5 comments) (0 reactions) (1 assignee)Rust (1.003 forks)batch import
assignedbughelp wanted

Métricas do repositório

Stars
 (12.054 stars)
Métricas de merge de PR
 (Mesclagem média 30d 16h) (30 fundiu PRs em 30d)

Description

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.

Guia do colaborador