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 upError when deriving QueryableByName: 'expected 1 type argument' #1368
Comments
This comment has been minimized.
|
Thank you for providing code to reproduce the issue. I am looking at it now. |
This comment has been minimized.
|
After pulling the generated code with |
sgrif
closed this
Dec 12, 2017
This comment has been minimized.
agersant
commented
Dec 13, 2017
•
|
Thank you very much for taking the time to investigate! Sorry it was a false alarm. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
agersant commentedDec 11, 2017
Setup
Versions
Feature Flags
Problem Description
While updating code from https://github.com/agersant/polaris to a newer diesel version and removing deprecated constructs, the suggested steps lead to an unhelpful compilation error.
The offending piece of code is:
Where
songsis a SQL table:Compiling this code with diesel 0.99.0 works but yields the following warning:
warning: use of deprecated item: usesql_queryif you need bind parameters.I updated the code following the warning's recommendation:
I got a (reasonable) error out of it:
the traitdiesel::query_source::QueryableByNamediesel::sqlite::Sqliteis not implemented forindex::Song``. Let's add the corresponding derive and table_name marker:This now fails to compile with an unhelpful error:
Steps to reproduce
Download the attached crate
diesel_qbn.zip
and execute
cargo check.Checklist