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 upWe generate a poor error message when `infer_schema!` is used on an empty database #1393
Comments
sgrif
referenced this issue
Dec 14, 2017
Closed
Following `diesel` sqlite example fails with 1.0.0-beta1 #1392
This comment has been minimized.
|
It looks like |
This comment has been minimized.
bitemyapp
commented
Dec 14, 2017
|
Is "empty database" inclusive of "wrong filepath?" That was what happened in my case. |
This comment has been minimized.
|
Yes, pointing to a file which doesn't exist would cause SQLite to create a new database at that location, which would be empty. |
This comment has been minimized.
|
This was resolved. |
sgrif
closed this
Jan 15, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sgrif commentedDec 14, 2017
Steps to reproduce:
Use
infer_schema!("empty_database_file.sqlite3");This should generate no code, but instead it errors out with "unexpected end of macro invocation".