summaryrefslogtreecommitdiff
path: root/sql/unireg.h
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-12-01 11:11:03 -0800
committerunknown <jimw@mysql.com>2005-12-01 11:11:03 -0800
commit4b4f7f7612083abf43876ed4beaaef6cb5dba5f9 (patch)
treea5543f9b6e059f508ad2e6227895eca157e4fb0e /sql/unireg.h
parent3c8a8de47e6f2fcc6358d4805e0aec885e18564a (diff)
downloadmariadb-git-4b4f7f7612083abf43876ed4beaaef6cb5dba5f9.tar.gz
Enable key lengths of up to 3K on 32-bit platforms.
mysql-test/r/bdb.result: Add new results mysql-test/r/innodb.result: Add new results mysql-test/t/bdb.test: Add simple test that large keys are allowed mysql-test/t/innodb.test: Add simple test that large keys are allowed sql/unireg.h: Allow key length of 3K even on 32-bit platforms
Diffstat (limited to 'sql/unireg.h')
-rw-r--r--sql/unireg.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/sql/unireg.h b/sql/unireg.h
index 8f21dd1d2db..40499261a4d 100644
--- a/sql/unireg.h
+++ b/sql/unireg.h
@@ -50,11 +50,7 @@
#define MAX_SYS_VAR_LENGTH 32
#define MAX_KEY 64 /* Max used keys */
#define MAX_REF_PARTS 16 /* Max parts used as ref */
-#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
+#define MAX_KEY_LENGTH 3072 /* max possible key */
#if SIZEOF_OFF_T > 4
#define MAX_REFLENGTH 8 /* Max length for record ref */
#else