the trait bound NaiveDateTime: FromSql<diesel::sql_types::Nullable<diesel::sql_types::Timestamp>, Pg>
is not satisfied
#2758
Labels
Setup
Versions
Feature Flags
Problem Description
I am trying to write a module that can query and insert into tables in PostgreSQL. But when I use a nullable timestamp field, the compiler panic with an error:
I think the Nullable should be implemented here.
What are you trying to accomplish?
A lacked feature when using diesel.
What is the expected output?
That it should compile (or show me some other errors).
What is the actual output?
Are you seeing any additional errors?
No
Steps to reproduce
Run
cargo run
on my code baseI have the following lines in my src/lib.rs file in this order:
The diesel-generated src/schema.rs file looks like this:
And the src/models.rs file looks like this:
Checklist
closed if this is not the case)
The text was updated successfully, but these errors were encountered: