diff options
author | Alexander Barkov <bar@mariadb.org> | 2016-06-27 15:14:07 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2016-06-27 15:14:07 +0400 |
commit | 652e799a387f63a582254a68363e720e47db97e4 (patch) | |
tree | b159d880063e0ae82c13d209a8bacdcdabdea2e2 /sql/field.h | |
parent | 305bbbce6152b0909937659ecba4d51e5b21c094 (diff) | |
download | mariadb-git-652e799a387f63a582254a68363e720e47db97e4.tar.gz |
MDEV-8502 DECIMAL accepts out of range DEFAULT values
MDEV-10277 Redundant NOTE when inserting '0.00001 ' into a DECIMAL(2,1) column
Diffstat (limited to 'sql/field.h')
-rw-r--r-- | sql/field.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/field.h b/sql/field.h index 08905f2c9e9..ca13fa9b9c2 100644 --- a/sql/field.h +++ b/sql/field.h @@ -1471,6 +1471,10 @@ protected: class Field_num :public Field { protected: + int check_edom_and_important_data_truncation(const char *type, bool edom, + CHARSET_INFO *cs, + const char *str, uint length, + const char *end_of_num); int check_edom_and_truncation(const char *type, bool edom, CHARSET_INFO *cs, const char *str, uint length, @@ -1708,6 +1712,7 @@ public: Item_result result_type () const { return DECIMAL_RESULT; } int reset(void); bool store_value(const my_decimal *decimal_value); + bool store_value(const my_decimal *decimal_value, int *native_error); void set_value_on_overflow(my_decimal *decimal_value, bool sign); int store(const char *to, uint length, CHARSET_INFO *charset); int store(double nr); |