[Tarantool-patches] [PATCH v2 0/2] decNumber utilites for SQL
Chris Sosnin
k.sosnin at tarantool.org
Wed Jun 24 19:53:30 MSK 2020
Changes in v2:
- Instead of skipping whitespaces, allow FromString to parse
valid beginning of the string and return pointer to the next
character. Thus, we can check for whitespaces ourselves.
This also requires lib/core changes: either pass a pointer
to decimal_from_string and check for '\0' after every use, or
refactor it so it works the same way and introduce something like strtodec.
- Rename decIsWhole -> decIsInt.
branch: https://github.com/tarantool/decNumber/tree/ksosnin/utilities-for-sql
related issue: https://github.com/tarantool/tarantool/issues/4415
Chris Sosnin (2):
Refactor decNumberFromString
Add IsInt method for checking the fractional part of a number
decNumber.c | 46 ++++++++++++++++++++++++++++++++++++++--------
decNumber.h | 27 ++++++++++++++-------------
2 files changed, 52 insertions(+), 21 deletions(-)
--
2.21.1 (Apple Git-122.3)
More information about the Tarantool-patches
mailing list