-
Notifications
You must be signed in to change notification settings - Fork 27
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
[Bug] "infinity" date fails to deserialize #41
Comments
PostgREST is able to use curl localhost:3000/articleStars?createdAt=gte.+Infinity
[]
curl localhost:3000/articleStars?createdAt=gte.-Infinity
[{"articleId":1,"userId":1,"createdAt":"2015-12-08T04:22:57.472738"},
{"articleId":1,"userId":2,"createdAt":"2015-12-08T04:22:57.472738"},
{"articleId":2,"userId":3,"createdAt":"2015-12-08T04:22:57.472738"},
{"articleId":3,"userId":2,"createdAt":"2015-12-08T04:22:57.472738"},
{"articleId":1,"userId":3,"createdAt":"2015-12-08T04:22:57.472738"}] (More special values documented in: https://postgrest.org/en/latest/how-tos/working-with-postgresql-data-types.html) So I guess this must be an issue with |
@steve-chavez thanks for the reply! Wasn't aware of being able to use @kamyker to clarify, you have a record in the database with Since we have to return a |
Yes, exactly.
Yes the same way as npgsql does. |
- `DateTimeConverter` supports reading values of `infinity` and `-infinity`, coerced into `DateTime.MaxValue` and `DateTime.MinValue` respectively - Update Contract resolver to support `DateTime`, DateTime?`, `List<DateTime>`, and `List<DateTime>` - Update Tests for new functionality
Inifinity is insterted when using npgsql https://www.npgsql.org/doc/types/datetime.html , then postgrest fails to desterilize it
The text was updated successfully, but these errors were encountered: