diff --git a/sql/ha_berkeley.h b/sql/ha_berkeley.h
index 59f11bfd74a1fc8cfc99743d6af132f6ca2b29ae..c747b4eef813ba58eb7b55734839ff8e23c5bedf 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;}