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
e6550a65
Commit
e6550a65
authored
Jul 20, 2007
by
ramil/ram@ramil.myoffice.izhnet.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/ram/work/b28125/b28125.5.0
into mysql.com:/home/ram/work/b28125/b28125.5.1
parents
216c669b
100faf97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
mysql-test/include/mix1.inc
mysql-test/include/mix1.inc
+9
-2
sql/sql_table.cc
sql/sql_table.cc
+4
-2
No files found.
mysql-test/include/mix1.inc
View file @
e6550a65
...
...
@@ -814,8 +814,16 @@ create table t1 (a int) engine=innodb;
alter
table
t1
alter
a
set
default
1
;
drop
table
t1
;
--
echo
End
of
5.0
tests
#
# Bug #28125: ERROR 2013 when adding index.
#
create
table
t1
(
a
text
)
engine
=
innodb
default
charset
=
utf8
;
insert
into
t1
values
(
'aaa'
);
alter
table
t1
add
index
(
a
(
1024
));
show
create
table
t1
;
drop
table
t1
;
--
echo
End
of
5.0
tests
# Fix for BUG#19243 "wrong LAST_INSERT_ID() after ON DUPLICATE KEY
# UPDATE": if the row is updated, it's like a regular UPDATE:
...
...
@@ -917,5 +925,4 @@ unlock tables;
select
*
from
t1
;
drop
tables
t1
;
--
echo
End
of
5.1
tests
sql/sql_table.cc
View file @
e6550a65
...
...
@@ -2789,6 +2789,8 @@ mysql_prepare_create_table(THD *thd, HA_CREATE_INFO *create_info,
length
);
push_warning
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
ER_TOO_LONG_KEY
,
warn_buff
);
/* Align key length to multibyte char boundary */
length
-=
length
%
sql_field
->
charset
->
mbmaxlen
;
}
else
{
...
...
@@ -2819,8 +2821,6 @@ mysql_prepare_create_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
();
/* Align key length to multibyte char boundary */
length
-=
length
%
sql_field
->
charset
->
mbmaxlen
;
if
(
key
->
type
==
Key
::
MULTIPLE
)
{
/* not a critical problem */
...
...
@@ -2829,6 +2829,8 @@ mysql_prepare_create_table(THD *thd, HA_CREATE_INFO *create_info,
length
);
push_warning
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
ER_TOO_LONG_KEY
,
warn_buff
);
/* Align key length to multibyte char boundary */
length
-=
length
%
sql_field
->
charset
->
mbmaxlen
;
}
else
{
...
...
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