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
55ad009b
Commit
55ad009b
authored
Sep 16, 2010
by
Magne Mahre
Browse files
Options
Browse Files
Download
Plain Diff
Merge from 5.1-bugteam
parents
deacb7c8
ebd207ba
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
mysql-test/suite/innodb/r/innodb_mysql.result
mysql-test/suite/innodb/r/innodb_mysql.result
+10
-0
mysql-test/suite/innodb/t/innodb_mysql.test
mysql-test/suite/innodb/t/innodb_mysql.test
+13
-0
sql/sql_table.cc
sql/sql_table.cc
+1
-0
No files found.
mysql-test/suite/innodb/r/innodb_mysql.result
View file @
55ad009b
...
@@ -2653,3 +2653,13 @@ COMMIT;
...
@@ -2653,3 +2653,13 @@ COMMIT;
COMMIT;
COMMIT;
DROP TABLE t1;
DROP TABLE t1;
DROP FUNCTION f1;
DROP FUNCTION f1;
#
# Bug#54606 innodb fast alter table + pack_keys=0
# prevents adding new indexes
#
CREATE TABLE t1 (a INT, b CHAR(9), c INT, key(b))
ENGINE=InnoDB
PACK_KEYS=0;
CREATE INDEX a ON t1 (a);
CREATE INDEX c on t1 (c);
DROP TABLE t1;
mysql-test/suite/innodb/t/innodb_mysql.test
View file @
55ad009b
...
@@ -830,3 +830,16 @@ connection default;
...
@@ -830,3 +830,16 @@ connection default;
COMMIT
;
COMMIT
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
DROP
FUNCTION
f1
;
DROP
FUNCTION
f1
;
--
echo
#
--
echo
# Bug#54606 innodb fast alter table + pack_keys=0
--
echo
# prevents adding new indexes
--
echo
#
CREATE
TABLE
t1
(
a
INT
,
b
CHAR
(
9
),
c
INT
,
key
(
b
))
ENGINE
=
InnoDB
PACK_KEYS
=
0
;
CREATE
INDEX
a
ON
t1
(
a
);
CREATE
INDEX
c
on
t1
(
c
);
DROP
TABLE
t1
;
sql/sql_table.cc
View file @
55ad009b
...
@@ -3536,6 +3536,7 @@ mysql_prepare_create_table(THD *thd, HA_CREATE_INFO *create_info,
...
@@ -3536,6 +3536,7 @@ mysql_prepare_create_table(THD *thd, HA_CREATE_INFO *create_info,
key_part_info
->
length
=
(
uint16
)
length
;
key_part_info
->
length
=
(
uint16
)
length
;
/* Use packed keys for long strings on the first column */
/* Use packed keys for long strings on the first column */
if
(
!
((
*
db_options
)
&
HA_OPTION_NO_PACK_KEYS
)
&&
if
(
!
((
*
db_options
)
&
HA_OPTION_NO_PACK_KEYS
)
&&
!
((
create_info
->
table_options
&
HA_OPTION_NO_PACK_KEYS
))
&&
(
length
>=
KEY_DEFAULT_PACK_LENGTH
&&
(
length
>=
KEY_DEFAULT_PACK_LENGTH
&&
(
sql_field
->
sql_type
==
MYSQL_TYPE_STRING
||
(
sql_field
->
sql_type
==
MYSQL_TYPE_STRING
||
sql_field
->
sql_type
==
MYSQL_TYPE_VARCHAR
||
sql_field
->
sql_type
==
MYSQL_TYPE_VARCHAR
||
...
...
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