diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-08-31 13:03:41 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-08-31 13:03:41 +0200 |
commit | a1fd37b1fd5803188d3f8b44914cca459f6e622f (patch) | |
tree | 1f279d0449cfd9f52cd36040ce07bb29a5388be9 /sql/opt_sum.cc | |
parent | 57694d52b470cf328e7d339dc0934da2b0238841 (diff) | |
download | mariadb-git-a1fd37b1fd5803188d3f8b44914cca459f6e622f.tar.gz |
MDEV-414 Depending on indexes or execution plans, a warning on incorrect or out of range values in WHERE condition is sometimes produced and sometimes not
use the same method that disables warnings in all relevant places, remove redundant function
Diffstat (limited to 'sql/opt_sum.cc')
-rw-r--r-- | sql/opt_sum.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_sum.cc b/sql/opt_sum.cc index cbec039b3e4..fa3a07b72c5 100644 --- a/sql/opt_sum.cc +++ b/sql/opt_sum.cc @@ -791,7 +791,7 @@ static bool matching_cond(bool max_fl, TABLE_REF *ref, KEY *keyinfo, { /* Update endpoints for MAX/MIN, see function comment. */ Item *value= args[between && max_fl ? 2 : 1]; - store_val_in_field(part->field, value, CHECK_FIELD_IGNORE); + value->save_in_field_no_warnings(part->field, 1); if (part->null_bit) *key_ptr++= (uchar) test(part->field->is_null()); part->field->get_key_image(key_ptr, part->length, Field::itRAW); |