summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-10-30 19:17:57 +0100
committerunknown <serg@serg.mylan>2003-10-30 19:17:57 +0100
commit372e949242e637d0d80a694132a221e3842acdbd (patch)
treee29f3d04a40a0f1438871abcf54eceb9de6a07e4 /sql/table.cc
parenta8b7edda5123969c62101a65aac33b4b0d173e44 (diff)
downloadmariadb-git-372e949242e637d0d80a694132a221e3842acdbd.tar.gz
Bitmap post-review fixes
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/table.cc b/sql/table.cc
index ebe1b51248e..14853011510 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -156,9 +156,9 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
VOID(my_seek(file,(ulong) uint2korr(head+6),MY_SEEK_SET,MYF(0)));
if (read_string(file,(gptr*) &disk_buff,key_info_length))
goto err_not_open; /* purecov: inspected */
- if (disk_buff[1] & 0x80)
+ if (disk_buff[0] & 0x80)
{
- outparam->keys= keys= uint2korr(disk_buff) & 0x7fff;
+ outparam->keys= keys= (disk_buff[1] << 7) | (disk_buff[0] & 0x7f);
outparam->key_parts= key_parts= uint2korr(disk_buff+2);
}
else
@@ -279,7 +279,7 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
if (my_pread(file,(byte*) record,(uint) outparam->reclength,
(ulong) (uint2korr(head+6)+
((uint2korr(head+14) == 0xffff ?
- uint4korr(head+10) : uint2korr(head+14)))),
+ uint4korr(head+47) : uint2korr(head+14)))),
MYF(MY_NABP)))
goto err_not_open; /* purecov: inspected */
/* HACK: table->record[2] is used instead of table->default_values here */