summaryrefslogtreecommitdiff
path: root/sql/ha_innodb.h
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2003-07-14 15:38:20 +0300
committerunknown <heikki@hundin.mysql.fi>2003-07-14 15:38:20 +0300
commit666d4717cbadb97201ea9b890993db65b12b7ee3 (patch)
treef9f4e1991fcabce4dd6527ee7967ecbf62bc25b2 /sql/ha_innodb.h
parent128feded87350231bf7c28a870932ef54e00bbdf (diff)
downloadmariadb-git-666d4717cbadb97201ea9b890993db65b12b7ee3.tar.gz
ha_innodb.h:
Fix wrong error message: If one tried to create table with a very big row len, MySQL claimed the max len is 64 kB for InnoDB, while it normally is 8000 bytes sql/ha_innodb.h: Fix wrong error message: If one tried to create table with a very big row len, MySQL claimed the max len is 64 kB for InnoDB, while it normally is 8000 bytes
Diffstat (limited to 'sql/ha_innodb.h')
-rw-r--r--sql/ha_innodb.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/ha_innodb.h b/sql/ha_innodb.h
index 86f409aff67..308deb68611 100644
--- a/sql/ha_innodb.h
+++ b/sql/ha_innodb.h
@@ -32,7 +32,6 @@ typedef struct st_innobase_share {
uint table_name_length,use_count;
} INNOBASE_SHARE;
-
/* The class defining a handle to an Innodb table */
class ha_innobase: public handler
{
@@ -112,7 +111,9 @@ class ha_innobase: public handler
return (HA_READ_NEXT | HA_READ_PREV | HA_READ_ORDER |
HA_KEY_READ_ONLY);
}
- uint max_record_length() const { return HA_MAX_REC_LENGTH; }
+ /* max_record_.. should be slightly less
+ than 1/2 UNIV_PAGE_SIZE */
+ uint max_record_length() const { return 8000; }
uint max_keys() const { return MAX_KEY; }
uint max_key_parts() const { return MAX_REF_PARTS; }
/* An InnoDB page must store >= 2 keys;