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
f40705eb
Commit
f40705eb
authored
Feb 24, 2006
by
brian@zim.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge zim.(none):/home/brian/mysql/mysql-5.0
into zim.(none):/home/brian/mysql/dep-5.1
parents
066c7148
776b05ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
mysql-test/r/create.result
mysql-test/r/create.result
+6
-0
mysql-test/t/create.test
mysql-test/t/create.test
+8
-0
sql/sql_table.cc
sql/sql_table.cc
+3
-1
No files found.
mysql-test/r/create.result
View file @
f40705eb
...
...
@@ -770,3 +770,9 @@ t1 CREATE TABLE `t1` (
`i` int(11) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=4294967295
drop table t1;
create table t1(f1 varchar(800) binary not null, key(f1)) engine = innodb
character set utf8 collate utf8_general_ci;
Warnings:
Warning 1071 Specified key was too long; max key length is 765 bytes
insert into t1 values('aaa');
drop table t1;
mysql-test/t/create.test
View file @
f40705eb
...
...
@@ -661,4 +661,12 @@ alter table t1 max_rows=100000000000;
show
create
table
t1
;
drop
table
t1
;
#
# Bug#17530: Incorrect key truncation on table creation caused server crash.
#
create
table
t1
(
f1
varchar
(
800
)
binary
not
null
,
key
(
f1
))
engine
=
innodb
character
set
utf8
collate
utf8_general_ci
;
insert
into
t1
values
(
'aaa'
);
drop
table
t1
;
# End of 5.0 tests
sql/sql_table.cc
View file @
f40705eb
...
...
@@ -1742,7 +1742,9 @@ static int mysql_prepare_table(THD *thd, HA_CREATE_INFO *create_info,
}
if
(
length
>
file
->
max_key_part_length
()
&&
key
->
type
!=
Key
::
FULLTEXT
)
{
length
=
file
->
max_key_part_length
();
length
=
file
->
max_key_part_length
();
/* Align key length to multibyte char boundary */
length
-=
length
%
sql_field
->
charset
->
mbmaxlen
;
if
(
key
->
type
==
Key
::
MULTIPLE
)
{
/* not a critical problem */
...
...
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