ha_innodb.cc:

Prevent the user from creating InnoDB tables with > 1000 columns
This commit is contained in:
heikki@hundin.mysql.fi 2003-07-08 20:51:45 +03:00
parent cc82126f5f
commit f8a767b5d5

View file

@ -3396,6 +3396,13 @@ ha_innobase::create(
DBUG_ASSERT(thd != NULL);
if (form->fields > 1000) {
/* The limit probably should be REC_MAX_N_FIELDS - 3 = 1020,
but we play safe here */
return(HA_ERR_TO_BIG_ROW);
}
/* Get the transaction associated with the current thd, or create one
if not yet created */