summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <andrey@lmy004.>2005-10-31 14:13:51 +0100
committerunknown <andrey@lmy004.>2005-10-31 14:13:51 +0100
commitd5a81fdc2589ed2e96aee94360233214930f9409 (patch)
tree199510c7375b500c6fc7e453abca3114370d797b
parentd29ecd5e91adf6eaeb4f2afef0db30648fe08065 (diff)
downloadmariadb-git-d5a81fdc2589ed2e96aee94360233214930f9409.tar.gz
fix for bug #14381 (Key length is limited to 255 bytes on BDB)
sql/ha_berkeley.h: BDB supports keylength of maximal 2^32 - use the maximum allowed by mysqld. (http://www.sleepycat.com/docs/ref/am_misc/dbsizes.html)
-rw-r--r--sql/ha_berkeley.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/ha_berkeley.h b/sql/ha_berkeley.h
index 59f11bfd74a..c747b4eef81 100644
--- a/sql/ha_berkeley.h
+++ b/sql/ha_berkeley.h
@@ -94,6 +94,9 @@ class ha_berkeley: public handler
uint max_supported_keys() const { return MAX_KEY-1; }
uint extra_rec_buf_length() { return BDB_HIDDEN_PRIMARY_KEY_LENGTH; }
ha_rows estimate_rows_upper_bound();
+ uint max_supported_key_length() const { return MAX_KEY_LENGTH; }
+ uint max_supported_key_part_length() const { return MAX_KEY_LENGTH; }
+
const key_map *keys_to_use_for_scanning() { return &key_map_full; }
bool has_transactions() { return 1;}