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
aa59a828
Commit
aa59a828
authored
Jan 14, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#167 test case for -100010 error when shrinking a column
parent
0e4317ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
mysql-test/suite/tokudb.bugs/r/alter_table_copy_table.result
mysql-test/suite/tokudb.bugs/r/alter_table_copy_table.result
+8
-0
mysql-test/suite/tokudb.bugs/t/alter_table_copy_table.test
mysql-test/suite/tokudb.bugs/t/alter_table_copy_table.test
+12
-0
No files found.
mysql-test/suite/tokudb.bugs/r/alter_table_copy_table.result
0 → 100644
View file @
aa59a828
drop table if exists t;
set tokudb_disable_hot_alter=ON;
set default_storage_engine=tokudb;
create table t (id int, x char(2), primary key (id), unique key (x));
insert into t values (1,'aa'),(2,'ab');
alter table t modify x char(1);
ERROR 23000: Duplicate entry 'a' for key 'x'
drop table t;
mysql-test/suite/tokudb.bugs/t/alter_table_copy_table.test
0 → 100644
View file @
aa59a828
# test that a uniqueness violation during an alter table operation returns a duplicate key error
source
include
/
have_tokudb
.
inc
;
disable_warnings
;
drop
table
if
exists
t
;
enable_warnings
;
set
tokudb_disable_hot_alter
=
ON
;
set
default_storage_engine
=
tokudb
;
create
table
t
(
id
int
,
x
char
(
2
),
primary
key
(
id
),
unique
key
(
x
));
insert
into
t
values
(
1
,
'aa'
),(
2
,
'ab'
);
--
error
1062
alter
table
t
modify
x
char
(
1
);
drop
table
t
;
\ 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