summaryrefslogtreecommitdiff
path: root/include/myisam.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2014-07-31 22:17:43 -0700
committerIgor Babaev <igor@askmonty.org>2014-07-31 22:17:43 -0700
commitf735822720b5e004d0f9cc3f490242c154cfbbac (patch)
tree474bb4521c30c58914cf55c2104f84533e5a634a /include/myisam.h
parent8dae5a8a891d50d71caf59129d637b517e32ae83 (diff)
downloadmariadb-git-f735822720b5e004d0f9cc3f490242c154cfbbac.tar.gz
Fixed bug mdev-5721.
Do not define a look-up key for a temporary table if its length exceeds the maximum length of such keys.
Diffstat (limited to 'include/myisam.h')
-rw-r--r--include/myisam.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/myisam.h b/include/myisam.h
index 14ef24c99ff..9b21b88fb5b 100644
--- a/include/myisam.h
+++ b/include/myisam.h
@@ -48,6 +48,12 @@ extern "C" {
#endif
#define MI_MAX_POSSIBLE_KEY_BUFF HA_MAX_POSSIBLE_KEY_BUFF
+/*
+ The following defines can be increased if necessary.
+ But beware the dependency of MI_MAX_POSSIBLE_KEY_BUFF and MI_MAX_KEY_LENGTH.
+*/
+#define MI_MAX_KEY_LENGTH 1000 /* Max length in bytes */
+#define MI_MAX_KEY_SEG 16 /* Max segments for key */
#define MI_NAME_IEXT ".MYI"
#define MI_NAME_DEXT ".MYD"