summaryrefslogtreecommitdiff
path: root/sql/key.cc
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-02-12 21:55:37 +0200
committermonty@mashka.mysql.fi <>2003-02-12 21:55:37 +0200
commite327393e9d2f8df0e2239464bb96a3eafd9de03b (patch)
tree3ac37e452f15c8f05e9d1f338a6050281f838048 /sql/key.cc
parent15aee374560aa905995b1c5af8ac91bc2c0638c2 (diff)
downloadmariadb-git-e327393e9d2f8df0e2239464bb96a3eafd9de03b.tar.gz
Fixed a lot of wrong memory references as reported by valgrind
Portability fixes Added new client function: mysql_get_server_version() New server help code (From Victor Vagin) Fixed wrong usage of binary() Disabled RTREE usage for now.
Diffstat (limited to 'sql/key.cc')
-rw-r--r--sql/key.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/key.cc b/sql/key.cc
index 875a89a146f..38ab596e213 100644
--- a/sql/key.cc
+++ b/sql/key.cc
@@ -194,7 +194,8 @@ int key_cmp(TABLE *table,const byte *key,uint idx,uint key_length)
{
if (my_strnncoll(key_part->field->charset(),
(const uchar*) key, length,
- (const uchar*) table->record[0]+key_part->offset,length))
+ (const uchar*) table->record[0]+key_part->offset,
+ length))
return 1;
}
else if (memcmp(key,table->record[0]+key_part->offset,length))