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
2530d5ad
Commit
2530d5ad
authored
Sep 10, 2002
by
serg@sergbook.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql-4.0
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.0
parents
daf1a575
888d3cf7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
myisam/mi_create.c
myisam/mi_create.c
+2
-1
sql/sql_table.cc
sql/sql_table.cc
+1
-1
No files found.
myisam/mi_create.c
View file @
2530d5ad
...
@@ -370,7 +370,8 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
...
@@ -370,7 +370,8 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
share
.
state
.
rec_per_key_part
[
key_segs
-
1
]
=
1L
;
share
.
state
.
rec_per_key_part
[
key_segs
-
1
]
=
1L
;
length
+=
key_length
;
length
+=
key_length
;
keydef
->
block_length
=
MI_BLOCK_SIZE
(
length
,
pointer
,
MI_MAX_KEYPTR_SIZE
);
keydef
->
block_length
=
MI_BLOCK_SIZE
(
length
,
pointer
,
MI_MAX_KEYPTR_SIZE
);
if
(
keydef
->
block_length
>
MI_MAX_KEY_BLOCK_LENGTH
)
if
(
keydef
->
block_length
>
MI_MAX_KEY_BLOCK_LENGTH
||
length
>
MI_MAX_KEY_LENGTH
)
{
{
my_errno
=
HA_WRONG_CREATE_OPTION
;
my_errno
=
HA_WRONG_CREATE_OPTION
;
goto
err
;
goto
err
;
...
...
sql/sql_table.cc
View file @
2530d5ad
...
@@ -627,7 +627,7 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
...
@@ -627,7 +627,7 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
if
(
!
(
key_info
->
flags
&
HA_NULL_PART_KEY
))
if
(
!
(
key_info
->
flags
&
HA_NULL_PART_KEY
))
unique_key
=
1
;
unique_key
=
1
;
key_info
->
key_length
=
(
uint16
)
key_length
;
key_info
->
key_length
=
(
uint16
)
key_length
;
uint
max_key_length
=
m
ax
(
file
->
max_key_length
(),
MAX_KEY_LENGTH
);
uint
max_key_length
=
m
in
(
file
->
max_key_length
(),
MAX_KEY_LENGTH
);
if
(
key_length
>
max_key_length
&&
key
->
type
!=
Key
::
FULLTEXT
)
if
(
key_length
>
max_key_length
&&
key
->
type
!=
Key
::
FULLTEXT
)
{
{
my_error
(
ER_TOO_LONG_KEY
,
MYF
(
0
),
max_key_length
);
my_error
(
ER_TOO_LONG_KEY
,
MYF
(
0
),
max_key_length
);
...
...
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