Skip to content

Change DATEDIFF to DATEDIFF_BIG for Sql Server v13+ #198

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

Merged
merged 2 commits into from
Dec 15, 2021

Conversation

alex-kulakov
Copy link
Contributor

DATEDIFF_BIG has bigger resolution and does not throw overflow exception even on vastly spaced dates. This allows to get rid of compute-expensive formula that served overflow prevention (as I understood).

@alex-kulakov alex-kulakov merged commit 03fe0c0 into 7.0 Dec 15, 2021
@alex-kulakov alex-kulakov deleted the 7.0-mssql-datediffbig branch December 20, 2021 03:14
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