summaryrefslogtreecommitdiff
path: root/sql/opt_sum.cc
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2002-12-19 15:27:46 +0400
committerunknown <bar@bar.mysql.r18.ru>2002-12-19 15:27:46 +0400
commitd21fec6e63f640c830e396d23691bb11e290c1ca (patch)
treec3e6bd23507975df60294ce53fadcc33d3a0b554 /sql/opt_sum.cc
parent482b2fcf12922649a0ec9e9954f750a4493c3d94 (diff)
downloadmariadb-git-d21fec6e63f640c830e396d23691bb11e290c1ca.tar.gz
Less "default_charset_info"
Diffstat (limited to 'sql/opt_sum.cc')
-rw-r--r--sql/opt_sum.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/opt_sum.cc b/sql/opt_sum.cc
index 1477d46e756..b1bb36353bf 100644
--- a/sql/opt_sum.cc
+++ b/sql/opt_sum.cc
@@ -364,7 +364,8 @@ static bool find_range_key(TABLE_REF *ref, Field* field, COND *cond)
// Save found constant
if (part->null_bit)
*key_ptr++= (byte) test(part->field->is_null());
- part->field->get_key_image((char*) key_ptr,part->length, Field::itRAW);
+ part->field->get_key_image((char*) key_ptr,part->length,
+ part->field->charset(), Field::itRAW);
key_ptr+=part->store_length - test(part->null_bit);
left_length-=part->store_length;
}