summaryrefslogtreecommitdiff
path: root/sql/ha_heap.h
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-05-24 12:21:15 -0700
committerunknown <jimw@mysql.com>2005-05-24 12:21:15 -0700
commit6ae9eb48d517a096ef5de054b71706f9c5351e65 (patch)
tree5b9334998567432d4b090ba9be4e173195cd9539 /sql/ha_heap.h
parentedcc645b8e03bcd60012a871ead7175067b72c0a (diff)
downloadmariadb-git-6ae9eb48d517a096ef5de054b71706f9c5351e65.tar.gz
Increase limit of partial key length in MEMORY storage engine
to the same as a full key. (Bug #10566) mysql-test/r/heap.result: Update results mysql-test/t/heap.test: Add test for bug #10566 sql/ha_heap.h: Add max_supported_key_part_length() method.
Diffstat (limited to 'sql/ha_heap.h')
-rw-r--r--sql/ha_heap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/ha_heap.h b/sql/ha_heap.h
index 60e2e84c5d2..33de0156074 100644
--- a/sql/ha_heap.h
+++ b/sql/ha_heap.h
@@ -53,6 +53,7 @@ public:
}
const key_map *keys_to_use_for_scanning() { return &btree_keys; }
uint max_supported_keys() const { return MAX_KEY; }
+ uint max_supported_key_part_length() const { return MAX_KEY_LENGTH; }
double scan_time() { return (double) (records+deleted) / 20.0+10; }
double read_time(uint index, uint ranges, ha_rows rows)
{ return (double) rows / 20.0+1; }