summaryrefslogtreecommitdiff
path: root/sql/key.cc
diff options
context:
space:
mode:
authorgshchepa/uchum@gshchepa.loc <>2007-04-29 12:09:08 +0500
committergshchepa/uchum@gshchepa.loc <>2007-04-29 12:09:08 +0500
commit389cf7ddfc220c57307ea13fff7285ab58df72ee (patch)
tree26d2c30ecf4b005478fdc01c0bb767f5d3cec7fc /sql/key.cc
parent85d70a9652cef29b85e96f043fafad34bebe0ace (diff)
parentfbed48268931611d6dd3e41f51b26f1a71f31e38 (diff)
downloadmariadb-git-389cf7ddfc220c57307ea13fff7285ab58df72ee.tar.gz
Merge gshchepa.loc:/home/uchum/work/bk-trees/mysql-4.1-opt
into gshchepa.loc:/home/uchum/work/bk-trees/mysql-5.0-opt-13191
Diffstat (limited to 'sql/key.cc')
-rw-r--r--sql/key.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/key.cc b/sql/key.cc
index 4c75fcae74a..1816e924c2b 100644
--- a/sql/key.cc
+++ b/sql/key.cc
@@ -132,9 +132,9 @@ void key_copy(byte *to_key, byte *from_record, KEY *key_info, uint key_length)
length= min(key_length, key_part->length);
Field *field= key_part->field;
CHARSET_INFO *cs= field->charset();
- uint bytes= field->get_key_image(to_key, length, Field::itRAW);
+ uint bytes= field->get_key_image((char*) to_key, length, Field::itRAW);
if (bytes < length)
- cs->cset->fill(cs, to_key + bytes, length - bytes, ' ');
+ cs->cset->fill(cs, (char*) to_key + bytes, length - bytes, ' ');
}
to_key+= length;
key_length-= length;