Skip to content
Snippets Groups Projects
Commit b6f855e2 authored by Timur Safin's avatar Timur Safin Committed by Kirill Yukhin
Browse files

datetime: check overflow after interval operations

We may overflow supported years range if we proceed
(multiple times) interval addition or subtraction operations.
At the end of add/sub we check all interval subcomponents
on validity of their value. Result of this check is returned
in the encoded value to the Lua side, where less than 0 means
underflow in some component, and greater than 0 overflow in
subcomponent.

Part of #6923

NO_DOC=fix
NO_CHANGELOG=fix
parent d69b3229
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment