diff options
author | Varun Gupta <varun.gupta@mariadb.com> | 2019-09-18 01:59:29 +0530 |
---|---|---|
committer | Varun Gupta <varun.gupta@mariadb.com> | 2019-09-18 15:06:02 +0530 |
commit | 273d8eb12c40a6dcd05a8148bdfba3f1fd96e764 (patch) | |
tree | 4d67cbf15ce5cc7fac333cac019f70eb4afb3916 /sql/field.h | |
parent | c471bfb34e970075d8649247ab088b19a097eaf4 (diff) | |
download | mariadb-git-273d8eb12c40a6dcd05a8148bdfba3f1fd96e764.tar.gz |
MDEV-20589: Server still crashes in Field::set_warning_truncated_wrong_value
The flag is_stat_field is not set for the min_value and max_value of field items
inside table share. This is a must requirement as we don't want to throw
warnings of truncation when we read values from the statistics table to the column
statistics of table share fields.
Diffstat (limited to 'sql/field.h')
-rw-r--r-- | sql/field.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/field.h b/sql/field.h index 19a716cfd5d..3f027868c3c 100644 --- a/sql/field.h +++ b/sql/field.h @@ -1220,7 +1220,6 @@ public: Field *clone(MEM_ROOT *mem_root, TABLE *new_table); Field *clone(MEM_ROOT *mem_root, TABLE *new_table, my_ptrdiff_t diff, bool stat_flag= FALSE); - Field *clone(MEM_ROOT *mem_root, my_ptrdiff_t diff); inline void move_field(uchar *ptr_arg,uchar *null_ptr_arg,uchar null_bit_arg) { ptr=ptr_arg; null_ptr=null_ptr_arg; null_bit=null_bit_arg; |