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
Inconsistent interval boudaries check #8878
Comments
Addition and subtraction also respect boundaries
|
Before this patch, one couldn't create new datetime interval with boundary value from Lua. At the same time, it was possible to create such interval from Lua through addition and subtraction. C range verification allow to create boundary value intervals, error message also implies that they should be allowed. (See tarantool#8878 for more info.) Closes tarantool#8878 NO_DOC=small bug fix
Before this patch, one couldn't create new datetime interval with boundary value from Lua. At the same time, it was possible to create such interval from Lua through addition and subtraction. C range verification allow to create boundary value intervals, error message also implies that they should be allowed. (See tarantool#8878 for more info.) Closes tarantool#8878 NO_DOC=small bug fix
Before this patch, one couldn't create new datetime interval with boundary value from Lua. At the same time, it was possible to create such interval from Lua through addition and subtraction. C range verification allow to create boundary value intervals, error message also implies that they should be allowed. (See tarantool#8878 for more info.) Closes tarantool#8878 NO_DOC=small bug fix
I had filed a separate issue, follow #8887 |
Before this patch, one couldn't create new datetime interval with boundary value from Lua. At the same time, it was possible to create such interval from Lua through addition and subtraction. C range verification allow to create boundary value intervals, error message also implies that they should be allowed. (See tarantool#8878 for more info.) Closes tarantool#8878 NO_DOC=small bug fix
Before this patch, one couldn't create new datetime interval with boundary value from Lua. At the same time, it was possible to create such interval from Lua through addition and subtraction. C range verification allow to create boundary value intervals, error message also implies that they should be allowed. (See tarantool#8878 for more info.) Closes tarantool#8878 NO_DOC=small bug fix
Before this patch, any value was allowed for interval attributes. Now we use the same rules as in Tarantool. A couple of issues were met while developing this patch, follow [1, 2] for core updates. 1. tarantool/tarantool#8878 2. tarantool/tarantool#8887
Before this patch, any value was allowed for interval attributes. Now we use the same rules as in Tarantool. A couple of issues were met while developing this patch, follow [1, 2] for core updates. 1. tarantool/tarantool#8878 2. tarantool/tarantool#8887
Before this patch, any value was allowed for interval attributes. Now we use the same rules as in Tarantool. A couple of issues were met while developing this patch, follow [1, 2] for core updates. 1. tarantool/tarantool#8878 2. tarantool/tarantool#8887
Before this patch, any value was allowed for interval attributes. Now we use the same rules as in Tarantool. A couple of issues were met while developing this patch, follow [1, 2] for core updates. 1. tarantool/tarantool#8878 2. tarantool/tarantool#8887
Before this patch, one couldn't create new datetime interval with boundary value from Lua. At the same time, it was possible to create such interval from Lua through addition and subtraction. C range verification allow to create boundary value intervals, error message also implies that they should be allowed. (See tarantool#8878 for more info.) Closes tarantool#8878 NO_DOC=small bug fix
Before this patch, one couldn't create new datetime interval with boundary value from Lua. At the same time, it was possible to create such interval from Lua through addition and subtraction. C range verification allow to create boundary value intervals, error message also implies that they should be allowed. (See tarantool#8878 for more info.) Closes tarantool#8878 NO_DOC=small bug fix
Before this patch, one couldn't create new datetime interval with boundary value from Lua. At the same time, it was possible to create such interval from Lua through addition and subtraction. C range verification allow to create boundary value intervals, error message also implies that they should be allowed. (See #8878 for more info.) Closes #8878 NO_DOC=small bug fix
Before this patch, one couldn't create new datetime interval with boundary value from Lua. At the same time, it was possible to create such interval from Lua through addition and subtraction. C range verification allow to create boundary value intervals, error message also implies that they should be allowed. (See #8878 for more info.) Closes #8878 NO_DOC=small bug fix (cherry picked from commit b2a001c)
Before this patch, one couldn't create new datetime interval with boundary value from Lua. At the same time, it was possible to create such interval from Lua through addition and subtraction. C range verification allow to create boundary value intervals, error message also implies that they should be allowed. (See #8878 for more info.) Closes #8878 NO_DOC=small bug fix (cherry picked from commit b2a001c)
@DifferentialOrange |
And it wasn't expected to, follow #8887 issue and #8888 patch |
I'll create a ticket. I'm just curious suddenly may you have a plan or a ticket to fix it somewhere upd: #8905 |
datetime.interval
allowed range should include boundaries, yet it doesn't.Square brackets imply boundaries inclusion, yet the boundaries are excluded.
tarantool/src/lua/datetime.lua
Lines 297 to 301 in ff57f99
At the same time, datetime range check
tarantool/src/lua/datetime.lua
Line 263 in ff57f99
and C interval range check
tarantool/src/lib/core/datetime.c
Line 695 in ff57f99
include boundaries, as expected.
The text was updated successfully, but these errors were encountered: