diff options
author | Leonard Zhou <leonard@mysql.com> | 2009-03-24 15:29:04 +0800 |
---|---|---|
committer | Leonard Zhou <leonard@mysql.com> | 2009-03-24 15:29:04 +0800 |
commit | dad07ffe9ed5711b66d86d18d9cdf814f472d49a (patch) | |
tree | 28a35254e0bc06cde57ecc5bfb2c40e5e9d9e6fa /sql/opt_sum.cc | |
parent | 5fdc5510ec1abcfe3f3f74a229ae3102533f46c4 (diff) | |
parent | fbb90c66d79fcb221589ba5907e20b923d5deacf (diff) | |
download | mariadb-git-dad07ffe9ed5711b66d86d18d9cdf814f472d49a.tar.gz |
Merge
Diffstat (limited to 'sql/opt_sum.cc')
-rw-r--r-- | sql/opt_sum.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/opt_sum.cc b/sql/opt_sum.cc index 39db1344588..f8603f06fa0 100644 --- a/sql/opt_sum.cc +++ b/sql/opt_sum.cc @@ -636,12 +636,12 @@ static bool matching_cond(bool max_fl, TABLE_REF *ref, KEY *keyinfo, key_part_map org_key_part_used= *key_part_used; if (eq_type || between || max_fl == less_fl) { - uint length= (key_ptr-ref->key_buff)+part->store_length; + size_t length= (key_ptr-ref->key_buff)+part->store_length; if (ref->key_length < length) /* Ultimately ref->key_length will contain the length of the search key */ - ref->key_length= length; + ref->key_length= (uint) length; if (!*prefix_len && part+1 == field_part) - *prefix_len= length; + *prefix_len= (uint) length; if (is_field_part && eq_type) *prefix_len= ref->key_length; |