summaryrefslogtreecommitdiff
path: root/sql/ha_berkeley.cc
diff options
context:
space:
mode:
authorunknown <monty@donna.mysql.com>2000-11-17 14:38:53 +0200
committerunknown <monty@donna.mysql.com>2000-11-17 14:38:53 +0200
commit3f9c19dcf6188194fa351ecccdad843cbbf987df (patch)
treecb381ac1fff02141e93130f4b183687527fdaffc /sql/ha_berkeley.cc
parent642ae16e850a0130ecd35fb150ba2c1754cc9c31 (diff)
downloadmariadb-git-3f9c19dcf6188194fa351ecccdad843cbbf987df.tar.gz
Fixed bug with text key compares in BDB
Docs/manual.texi: Updated statistics table mysys/Makefile.am: Removed rule for getopt1.o sql-bench/test-insert.sh: Enlarged some tests sql/ha_berkeley.cc: Fixed bug with text key compares BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/ha_berkeley.cc')
-rw-r--r--sql/ha_berkeley.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_berkeley.cc b/sql/ha_berkeley.cc
index 490a6db89e5..df54bef5d52 100644
--- a/sql/ha_berkeley.cc
+++ b/sql/ha_berkeley.cc
@@ -1150,7 +1150,7 @@ int ha_berkeley::index_read(byte * buf, const byte * key,
/* read of partial key */
pack_key(&last_key, active_index, key_buff, key, key_len);
/* Store for compare */
- memcpy(key_buff2, key_buff, last_key.size);
+ memcpy(key_buff2, key_buff, (key_len=last_key.size));
key_info->handler.bdb_return_if_eq= -1;
error=read_row(cursor->c_get(cursor, &last_key, &row, DB_SET_RANGE),
buf, active_index, &row, (DBT*) 0, 0);