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 up`infer_schema!` recursion limit reached while expanding the macro `static_cond` #1430
Comments
This comment has been minimized.
|
Do what the compiler tells you, add a |
Eijebong
closed this
Dec 22, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
maueroats commentedDec 22, 2017
Setup
Adapting Diesel demo code to access a small database, I was unable to use
infer_schema!on an empty database with six (or more) columns. Using the same database with five columns,infer_schema!works fine.Versions
Feature Flags
Problem Description
Following the getting started document,
infer_schema!works fine.With my own database (which I thought was trivial),
infer_schema!fails with the following message:The table in question is an empty table created by the following
diesel migration run:If I omit the last line with
eviland dodiesel migration redofollowed by touching the file with theinfer_schema!, thencargo builddoes not fail. Stopped investigating at this point.What are you trying to accomplish?
Use Diesel to access a small database.
What is the expected output?
Successful compilation.
What is the actual output?
n/a
Are you seeing any additional errors?
no
Steps to reproduce
See above. Let me know if this is not enough to reproduce.
Note that a
diesel print-schemaworks fine, even thoughinfer_schema!does not.Checklist