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
47e6cc1f
Commit
47e6cc1f
authored
Jan 31, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tokutek/mysql#14 test case for drop pk gets invalid key prefix bug
parent
2ea52a40
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
0 deletions
+52
-0
mysql-test/suite/tokudb.alter_table/r/drop_pk_with_prefix.result
...est/suite/tokudb.alter_table/r/drop_pk_with_prefix.result
+20
-0
mysql-test/suite/tokudb.alter_table/t/drop_pk_with_prefix.test
...-test/suite/tokudb.alter_table/t/drop_pk_with_prefix.test
+32
-0
No files found.
mysql-test/suite/tokudb.alter_table/r/drop_pk_with_prefix.result
0 → 100644
View file @
47e6cc1f
set default_storage_engine=tokudb;
DROP TABLE IF EXISTS testtable;
CREATE TABLE `testtable` (
`id` INT(11) NOT NULL,
`keyword` VARCHAR(299) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `keyword` (`keyword`(100))
) ENGINE=TokuDB DEFAULT CHARSET=utf8 ROW_FORMAT=TOKUDB_QUICKLZ;
set tokudb_disable_hot_alter=ON;
ALTER TABLE testtable DROP PRIMARY KEY;
drop table testtable;
CREATE TABLE `testtable` (
`id` INT(11) NOT NULL,
`keyword` VARCHAR(299) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `keyword` (`keyword`(100))
) ENGINE=TokuDB DEFAULT CHARSET=utf8 ROW_FORMAT=TOKUDB_QUICKLZ;
set tokudb_disable_hot_alter=OFF;
ALTER TABLE testtable DROP PRIMARY KEY;
drop table testtable;
mysql-test/suite/tokudb.alter_table/t/drop_pk_with_prefix.test
0 → 100644
View file @
47e6cc1f
# drop primary key should work. 5.5 alter table has a bug where drop pk returns invalid key prefix
source
include
/
have_tokudb
.
inc
;
set
default_storage_engine
=
tokudb
;
disable_warnings
;
DROP
TABLE
IF
EXISTS
testtable
;
enable_warnings
;
CREATE
TABLE
`testtable`
(
`id`
INT
(
11
)
NOT
NULL
,
`keyword`
VARCHAR
(
299
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
),
KEY
`keyword`
(
`keyword`
(
100
))
)
ENGINE
=
TokuDB
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
TOKUDB_QUICKLZ
;
set
tokudb_disable_hot_alter
=
ON
;
ALTER
TABLE
testtable
DROP
PRIMARY
KEY
;
drop
table
testtable
;
CREATE
TABLE
`testtable`
(
`id`
INT
(
11
)
NOT
NULL
,
`keyword`
VARCHAR
(
299
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
),
KEY
`keyword`
(
`keyword`
(
100
))
)
ENGINE
=
TokuDB
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
TOKUDB_QUICKLZ
;
set
tokudb_disable_hot_alter
=
OFF
;
ALTER
TABLE
testtable
DROP
PRIMARY
KEY
;
drop
table
testtable
;
\ No newline at end of file
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