Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

nihohit
Copy link

@nihohit nihohit commented Oct 13, 2025

Bug Fixes

Currently, trying to parse u32 from an INT column in Postgres fails with Err value: DBError(Query(SqlxError(ColumnDecode { index: "\"number\"", source: "mismatched types; Rust type core::option::Option<sqlx_postgres::types::oid::Oid> (as SQL type OID) is not compatible with SQL type INT4" })))

This change adds a fallback - if parsing to Oid fails, try parsing as i32.

Currently, trying to parse u32 from an INT column in Postgres fails with
`Err` value: DBError(Query(SqlxError(ColumnDecode { index: "\"roles\"", source: "mismatched types; Rust type `core::option::Option<sqlx_postgres::types::oid::Oid>` (as SQL type `OID`) is not compatible with SQL type `INT4`" })))`

This change adds a fallback - if parsing to Oid fails, try parsing as i32.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant