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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
4971d4de
Commit
4971d4de
authored
May 29, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document that DICT_MAX_INDEX_COL_LEN must not be changed.
parent
c99433a3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
dict/dict0dict.c
dict/dict0dict.c
+6
-0
include/dict0mem.h
include/dict0mem.h
+3
-1
No files found.
dict/dict0dict.c
View file @
4971d4de
...
...
@@ -1531,6 +1531,12 @@ dict_index_add_col(
if
(
field
->
fixed_len
>
DICT_MAX_INDEX_COL_LEN
)
{
field
->
fixed_len
=
0
;
}
#if DICT_MAX_INDEX_COL_LEN != 768
/* The comparison limit above must be constant. If it were
changed, the disk format of some fixed-length columns would
change, which would be a disaster. */
# error "DICT_MAX_INDEX_COL_LEN != 768"
#endif
if
(
!
(
col
->
prtype
&
DATA_NOT_NULL
))
{
index
->
n_nullable
++
;
...
...
include/dict0mem.h
View file @
4971d4de
...
...
@@ -161,7 +161,9 @@ struct dict_col_struct{
/* DICT_MAX_INDEX_COL_LEN is measured in bytes and is the max index column
length + 1. Starting from 4.1.6, we set it to < 3 * 256, so that one can
create a column prefix index on 255 characters of a TEXT field also in the
UTF-8 charset. In that charset, a character may take at most 3 bytes. */
UTF-8 charset. In that charset, a character may take at most 3 bytes.
This constant MUST NOT BE CHANGED, or the compatibility of InnoDB data files
would be at risk! */
#define DICT_MAX_INDEX_COL_LEN 768
...
...
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