[PATCH v2] box: add support for decimals in update ops
Konstantin Osipov
kostja at tarantool.org
Thu Aug 22 13:07:04 MSK 2019
* Serge Petrenko <sergepetrenko at tarantool.org> [19/08/22 11:59]:
>
> >> Closes #4413
> >>
> >> @TarantoolBot document
> >> Title: update operations on decimal fields.
> >>
> >> tuple:update and space:update now support deicmal operands for
> >> arithmetic operations ('+' and '-'). The syntax is as usual:
> >
> > Please document how type arithmetics work, and cover it with
> > tests.
>
> Hi! I added the following text to the docbot request in commit message:
>
> «When performing an arithmetic operation ('+', '-'), where either the
> updated field or the operand is decimal, the result will be decimal.
> When both the updated field and the operand are decimal, the result
> will, of course, be decimal.»
thanks. lgtm then.
--
Konstantin Osipov, Moscow, Russia
More information about the Tarantool-patches
mailing list