We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I try to read TIMESTAMP WITH TIME ZONE. I defined t as Timespec. I have already extern crate time; and use time::Timespec;
but I still get this error message:
the trait postgres::types::FromSql is not implemented for the type time::Timespec [E0277] updated_time:row.get("created_time"),
postgres::types::FromSql
time::Timespec
The text was updated successfully, but these errors were encountered:
You need to enable the time feature to activate the FromSql and ToSql implementations for Timespec: https://github.com/sfackler/rust-postgres#timestamptimestamptz-types
time
FromSql
ToSql
Timespec
Sorry, something went wrong.
Thank you. I just notice how to enable feature in Cargo.toml.
postgres = {version="0.8.8", features=["time"]}
No branches or pull requests
I try to read TIMESTAMP WITH TIME ZONE. I defined t as Timespec. I have already extern crate time; and use time::Timespec;
but I still get this error message:
the trait
postgres::types::FromSql
is not implemented for the typetime::Timespec
[E0277]updated_time:row.get("created_time"),
The text was updated successfully, but these errors were encountered: