diff options
author | kent@mysql.com <> | 2005-08-27 01:50:38 +0200 |
---|---|---|
committer | kent@mysql.com <> | 2005-08-27 01:50:38 +0200 |
commit | 057a98af4ffc3a518ed7bfa2bd5b1bdf7e1ab022 (patch) | |
tree | 9a6996a2b854db78fa539ddeb35e22c38a9e00a3 /sql/unireg.h | |
parent | fb690a5e04b8d0181c493a057ec455cf6f1c136e (diff) | |
download | mariadb-git-057a98af4ffc3a518ed7bfa2bd5b1bdf7e1ab022.tar.gz |
unireg.h:
Max index key length increased from 1024 to 3072
for 64 bit builds.
Diffstat (limited to 'sql/unireg.h')
-rw-r--r-- | sql/unireg.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/unireg.h b/sql/unireg.h index 8d88683241b..6afefa579e8 100644 --- a/sql/unireg.h +++ b/sql/unireg.h @@ -50,7 +50,11 @@ #define MAX_SYS_VAR_LENGTH 32 #define MAX_KEY 64 /* Max used keys */ #define MAX_REF_PARTS 16 /* Max parts used as ref */ -#define MAX_KEY_LENGTH 1024 /* max possible key */ +#if SIZEOF_CHARP > 4 +#define MAX_KEY_LENGTH 3072 /* max possible key, if 64 bits */ +#else +#define MAX_KEY_LENGTH 1024 /* max possible key, if 32 bits */ +#endif #if SIZEOF_OFF_T > 4 #define MAX_REFLENGTH 8 /* Max length for record ref */ #else |