Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f8a767b5
Commit
f8a767b5
authored
Jul 08, 2003
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ha_innodb.cc:
Prevent the user from creating InnoDB tables with > 1000 columns
parent
cc82126f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
sql/ha_innodb.cc
sql/ha_innodb.cc
+7
-0
No files found.
sql/ha_innodb.cc
View file @
f8a767b5
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment