-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
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
Trait bound NaiveDateTime: sqlx::Decode<'_, sqlx::Any>
is not satisfied
#2636
Comments
I have the same issue with My flags: [dependencies.sqlx]
version = "0.7"
features = ["default", "chrono", "postgres", "mysql", "runtime-tokio-rustls", "any"] |
The same issue here migrating from 0.6.3 version to 0.7.1. I'm getting both error for DateTime attributes :
Current flags (with sqlx version 0.6.3):
|
This issue persists in 0.7.2 |
Same bug / issue in version 0.7.3 (this implementation is working with sqlx < 0.7.x):
Do you suggest any workaround or solution for this issue? |
I am experiencing the same issue with version 0.7.2. |
Hello, is there any update on this ticket? it has been open since July, it would be great to know at least if this issue is going to be resolved or not, and an ETA if possible. |
Hello friend, do you have an estimate to look into this ticket soon??!! It would help me a lot to be able to update the library version!! |
Any updates on this ?! |
Seems like I must be doing something wrong if only the few of us in this thread seem to be running into this. As noted it seems like the behavior works with 6.3 fine but the 7.0 version made some drastic changes. If this is not a major issue, how are other people working around this issue? |
I'm seeing the same thing. |
I have the same problem |
Issue persists in 0.8.0 :( |
Our workaround to avoid these breaking changes was remove AnyPool implementation / references and split it between Sqlite and Postgres implementations based on Rust profiles... does not make any sense, it was a lot of rework but now it's working 🫠 |
@abonander Could you please verify that the removal of this feature was intended and sqlx will not add it back? I think it's better to be clear about this issue than keep ppl using old versions of sqlx because they wait for a version that is compatible in this regard again. Thanks in advance |
Bug Description
In trying to migrate my project from sqlx 0.6.3 to 0.7.1, I'm getting a compile error with
try_get
on anAnyRow
withchrono::NaiveDateTime
(code snippet below).Maybe I'm missing something, but it appears that #2039 removed those impls without adding them back.
Was this an accidental breakage or is there something I can change in my code to get it working again?
Minimal Reproduction
Info
["any", "chrono", "postgres", "sqlite"]
rustc --version
: v1.71.0The text was updated successfully, but these errors were encountered: