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 deriving Insertable for a SQLite table with a nullable timestamp column #1242
Comments
This comment has been minimized.
|
This appears to have been caused by 38038f6. It occurs for all reference types except We haven't implemented that in the past, as there's really no reason to take a reference other than for |
added a commit
that referenced
this issue
Oct 8, 2017
sgrif
referenced this issue
Oct 8, 2017
Merged
Always implement `AsExpression` for double references #1243
This comment has been minimized.
|
I've opened a PR to fix this on master, but I won't be backporting it to 0.16 as there's very little reason to use |
nmusatti commentedOct 7, 2017
•
edited
Setup
Versions
Feature Flags
Problem Description
What are you trying to accomplish?
I have a table defined as follows:
I'm trying to derive an
Insertableimplementation for it following roughly the Getting Started guide, usinginfer_schema!and the following struct:What is the expected output?
A successful compilation, as is the case with diesel 0.14
What is the actual output?
A series of error messages complaining for unsatisfied trait bounds, such as these:
Are you seeing any additional errors?
The full list of errors can be found in this gist.
Steps to reproduce
This project exemplifies the problem; uncomment the sections that are commented out and build. If you change the
dieselanddiesel_codegenversion to 0.14 anddotenv's to 0.9 you'll see that it compiles and runs without problems.Checklist