algorithm offset preprocessing :
if offset > #tuple then
offset = #tuple
end
if offset < 0 then
if offset < -#tuple then
raise exception
else
offset = #tuple - (-offset)
end
--
You received this bug notification because you are a member of Tarantool
Development Team, which is subscribed to tarantool.
https://bugs.launchpad.net/bugs/1028769
Title:
please add method to tuple
Status in Tarantool - an efficient in-memory data store:
Confirmed
Bug description:
it would be nice to have a method tuple:append
local tuple1 = box.select(10, 20);
local tuple2 = tuple1:append({1,2,3})
box.replace( 10, unpack(tuple2) )
PS: also it would be nice to have method tuple:splice(offset, len, ...)
To manage notifications about this bug go to:
https://bugs.launchpad.net/tarantool/+bug/1028769/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help : https://help.launchpad.net/ListHelp