Skip to content
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

Fix: Cannot query Postgres INTERVAL[] #3566

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ddystopia
Copy link

    error: unsupported type INTERVAL[] of column #2 ("event_offsets")

Hello, I'm querying array of intervals, but sqlx give that error.

That PR fixes it

@@ -24,6 +24,8 @@ impl_type_checking!(

sqlx::postgres::types::PgInterval,

Vec<sqlx::postgres::types::PgInterval> | &[sqlx::postgres::types::PgInterval],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this down here with the rest of the array types:

Vec<sqlx::postgres::types::PgMoney> | &[sqlx::postgres::types::PgMoney],

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.

2 participants