mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
ha_innodb.cc:
Prevent the user from creating InnoDB tables with > 1000 columns
This commit is contained in:
parent
cc82126f5f
commit
f8a767b5d5
1 changed files with 7 additions and 0 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue