summaryrefslogtreecommitdiff
path: root/sql/sql_help.cc
diff options
context:
space:
mode:
authorserg@janus.mylan <>2007-03-16 20:33:27 +0100
committerserg@janus.mylan <>2007-03-16 20:33:27 +0100
commit55a548cf4d923fc6a3ab38a4b447f639257e358f (patch)
tree5c776e7835969b55a2ad2ba1f861c8ad843a8a9d /sql/sql_help.cc
parent5233a2a52a50a9e153a6f4174b5a5526b18f78e7 (diff)
parent11fbf30e7545adb8434ba2fa5322a33597f5617c (diff)
downloadmariadb-git-55a548cf4d923fc6a3ab38a4b447f639257e358f.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into janus.mylan:/usr/home/serg/Abk/mysql-5.1
Diffstat (limited to 'sql/sql_help.cc')
-rw-r--r--sql/sql_help.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/sql_help.cc b/sql/sql_help.cc
index 6cb87c7e601..aacfd8f8245 100644
--- a/sql/sql_help.cc
+++ b/sql/sql_help.cc
@@ -295,8 +295,7 @@ int get_topics_for_keyword(THD *thd, TABLE *topics, TABLE *relations,
rkey_id->store((longlong) key_id, TRUE);
rkey_id->get_key_image(buff, rkey_id->pack_length(), Field::itRAW);
int key_res= relations->file->index_read(relations->record[0],
- (byte *) buff,
- rkey_id->pack_length(),
+ (byte *) buff, (ulonglong)1,
HA_READ_KEY_EXACT);
for ( ;
@@ -310,7 +309,7 @@ int get_topics_for_keyword(THD *thd, TABLE *topics, TABLE *relations,
field->get_key_image(topic_id_buff, field->pack_length(), Field::itRAW);
if (!topics->file->index_read(topics->record[0], (byte *)topic_id_buff,
- field->pack_length(), HA_READ_KEY_EXACT))
+ (ulonglong)1, HA_READ_KEY_EXACT))
{
memorize_variant_topic(thd,topics,count,find_fields,
names,name,description,example);