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
c731bad9
Commit
c731bad9
authored
Apr 02, 2007
by
msvensson@pilot.blaudden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cset exclude: tsmith@siva.hindu.god|ChangeSet|20070328212513|13373
parent
79b2bd53
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
741 deletions
+3
-741
myisam/mi_open.c
myisam/mi_open.c
+1
-1
mysql-test/r/create.result
mysql-test/r/create.result
+0
-517
mysql-test/t/create.test
mysql-test/t/create.test
+1
-211
sql/table.cc
sql/table.cc
+1
-12
No files found.
myisam/mi_open.c
View file @
c731bad9
...
...
@@ -219,7 +219,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
key_parts
+=
fulltext_keys
*
FT_SEGS
;
if
(
share
->
base
.
max_key_length
>
MI_MAX_KEY_BUFF
||
keys
>
MI_MAX_KEY
||
key_parts
>
MI_MAX_KEY
*
MI_MAX_KEY_SEG
)
key_parts
>
=
MI_MAX_KEY
*
MI_MAX_KEY_SEG
)
{
DBUG_PRINT
(
"error"
,(
"Wrong key info: Max_key_length: %d keys: %d key_parts: %d"
,
share
->
base
.
max_key_length
,
keys
,
key_parts
));
my_errno
=
HA_ERR_UNSUPPORTED
;
...
...
mysql-test/r/create.result
View file @
c731bad9
This diff is collapsed.
Click to expand it.
mysql-test/t/create.test
View file @
c731bad9
This diff is collapsed.
Click to expand it.
sql/table.cc
View file @
c731bad9
...
...
@@ -1283,18 +1283,7 @@ File create_frm(register my_string name, const char *db, const char *table,
fileinfo
[
3
]
=
(
uchar
)
ha_checktype
(
create_info
->
db_type
);
fileinfo
[
4
]
=
1
;
int2store
(
fileinfo
+
6
,
IO_SIZE
);
/* Next block starts here */
/*
For each key (see unireg.cc::pack_keys()):
8 bytes for the key header
9 bytes for each key-part (MAX_REF_PARTS)
NAME_LEN bytes for the name
1 byte for the NAMES_SEP_CHAR (before the name)
For all keys:
6 bytes for the header
1 byte for the NAMES_SEP_CHAR (after the last name)
9 extra bytes (padding for safety? alignment?)
*/
key_length
=
keys
*
(
8
+
MAX_REF_PARTS
*
9
+
NAME_LEN
+
1
)
+
16
;
key_length
=
keys
*
(
7
+
NAME_LEN
+
MAX_REF_PARTS
*
9
)
+
16
;
length
=
(
ulong
)
next_io_size
((
ulong
)
(
IO_SIZE
+
key_length
+
reclength
));
int4store
(
fileinfo
+
10
,
length
);
if
(
key_length
>
0xffff
)
key_length
=
0xffff
;
...
...
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