We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In some dialects, EXTRACT() may yield non-integer results. For example:
EXTRACT()
-- Input extract(millennium from date '2001-01-01') -- Output in CockroachDB (extract(year from date '2001-01-01') / 10)
When executed, this yields 200.1, not 200, due to the fact that that EXTRACT() produces a floating point number.
200.1
200
The text was updated successfully, but these errors were encountered:
[#10248] Wrong emulation of EXTRACT() with DECADE, CENTURY, MILLENIUM…
1d2a24b
… date parts
A lot of features depend on EXTRACT(), which means a backport will bring with it some slight regression risk. I won't backport this fix.
Sorry, something went wrong.
It is needed for #7900, though.
No branches or pull requests
In some dialects,
EXTRACT()
may yield non-integer results. For example:When executed, this yields
200.1
, not200
, due to the fact that thatEXTRACT()
produces a floating point number.The text was updated successfully, but these errors were encountered: