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

+/- infinity value for date/timestamp/timestamp with time zone #4515

Open
xiangjinwu opened this issue Aug 9, 2022 · 1 comment
Open

+/- infinity value for date/timestamp/timestamp with time zone #4515

xiangjinwu opened this issue Aug 9, 2022 · 1 comment

Comments

@xiangjinwu
Copy link
Contributor

Is your feature request related to a problem? Please describe.
In PostgreSQL, the types date/timestamp/timestamp with time zone support special infinity and -infinity values, just like real / double precision / decimal.

time cannot be infinity.

interval cannot be infinity either. But there do exists a checking function isfinite ( interval ) → boolean, which is "currently always true" according to PostgreSQL doc.

Describe the solution you'd like
Just like Decimal, make the wrapper type an enum rather than newtype. Specially, timestamp with time zone is not wrapped right now.

Describe alternatives you've considered
Nothing yet. Suggestions are welcome.

Additional context
Just raising awareness of this difference. No urgent need for implementation.

@fuyufjh fuyufjh modified the milestone: release-0.1.13 Sep 5, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2022

This issue has been open for 60 days with no activity. Could you please update the status? Feel free to continue discussion or close as not planned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants