diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2020-02-02 15:13:29 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2020-02-02 15:13:29 +0300 |
commit | b0fa30808622fe12d474a70af1838906e60b9897 (patch) | |
tree | d3a9096d3f7bfcf51411b8a6892733a9c31e6e7c /sql/my_decimal.h | |
parent | 74deeaee342c901c92b91d12033771716a373d8e (diff) | |
download | mariadb-git-b0fa30808622fe12d474a70af1838906e60b9897.tar.gz |
MDEV-21195 INSERT chooses wrong partition for RANGE partitioning by DECIMAL column
Use FLOOR rounding for DECIMAL_RESULT item_expr in partition function.
Diffstat (limited to 'sql/my_decimal.h')
-rw-r--r-- | sql/my_decimal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/my_decimal.h b/sql/my_decimal.h index 6d6bb258293..b409a87bdd4 100644 --- a/sql/my_decimal.h +++ b/sql/my_decimal.h @@ -348,7 +348,7 @@ my_decimal *seconds2my_decimal(bool sign, ulonglong sec, ulong microsec, (TIME)->second_part, (DECIMAL)) int my_decimal2int(uint mask, const decimal_t *d, bool unsigned_flag, - longlong *l); + longlong *l, decimal_round_mode round_type= HALF_UP); inline int my_decimal2double(uint, const decimal_t *d, double *result) |