diff options
author | unknown <monty@donna.mysql.com> | 2000-11-17 14:38:53 +0200 |
---|---|---|
committer | unknown <monty@donna.mysql.com> | 2000-11-17 14:38:53 +0200 |
commit | 9442140943c233ca7a66a9acdb0f99e308493305 (patch) | |
tree | cb381ac1fff02141e93130f4b183687527fdaffc /sql/ha_berkeley.cc | |
parent | 14d880472eda7f2711616b97099594a781ed6588 (diff) | |
download | mariadb-git-9442140943c233ca7a66a9acdb0f99e308493305.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.cc | 2 |
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); |