You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the document example code of sqlx::query_as, there exists several bugs that I encountered when testing.
query_as.rs: 230 mismatched bracket.
query_as.rs: 230 move TIMESTAMP to TIMESTAMPTZ to match type time::OffsetDateTime.
query_as.rs: 241, 251, 260 move i64 to i32 to match postgres type INT4.
I believe the Json example using query_as is also incorrect. It looks like macro returns Option<Json<T>> instead of Json<T> and Json<T> doesn't implement From<Option<Json<T>>>
I believe the Json example using query_as is also incorrect. It looks like macro returns Option<Json<T>> instead of Json<T> and Json<T> doesn't implement From<Option<Json<T>>>
Bug Description
In the document example code of
sqlx::query_as
, there exists several bugs that I encountered when testing.query_as.rs: 230 mismatched bracket.
query_as.rs: 230 move TIMESTAMP to TIMESTAMPTZ to match type time::OffsetDateTime.
query_as.rs: 241, 251, 260 move i64 to i32 to match postgres type INT4.
Minimal Reproduction
Just run current code piece in document of
query_as
:https://docs.rs/sqlx/latest/sqlx/fn.query_as.html#example-map-rows-using-tuples
Info
rustc --version
: rustc 1.81.0 (eeb90cda1 2024-09-04)The text was updated successfully, but these errors were encountered: