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
4045a87b
Commit
4045a87b
authored
Apr 28, 2024
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test for Bug #16051817 GOT ERROR 124 FROM STORAGE ENGINE ON DELETE FROM A PARTITIONED TABLE
followup for
c5896384
parent
3d75cffa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
mysql-test/suite/parts/r/alter_table.result
mysql-test/suite/parts/r/alter_table.result
+21
-0
mysql-test/suite/parts/t/alter_table.test
mysql-test/suite/parts/t/alter_table.test
+13
-0
No files found.
mysql-test/suite/parts/r/alter_table.result
View file @
4045a87b
...
...
@@ -38,4 +38,25 @@ ALTER TABLE v1 EXCHANGE PARTITION p2 WITH TABLE t2 ;
ERROR 42000: Can't open table
DROP VIEW v1;
DROP TABLE t1, t2;
#
# MDEV-25102 UNIQUE USING HASH error after ALTER ... DISABLE KEYS
#
create table t1 (i1 int primary key, i2 int, d1 date, key(i2))
partition by hash(i1) partitions 3;
insert into t1 values(0, 1, '2010-10-10');
select index_name, comment from information_schema.statistics where table_schema='test' and table_name='t1';
index_name comment
PRIMARY
i2
alter table t1 disable keys;
select index_name, comment from information_schema.statistics where table_schema='test' and table_name='t1';
index_name comment
PRIMARY
i2 disabled
alter table t1 add partition (partition p4);
select index_name, comment from information_schema.statistics where table_schema='test' and table_name='t1';
index_name comment
PRIMARY
i2 disabled
drop table t1;
# End of 10.5 tests
mysql-test/suite/parts/t/alter_table.test
View file @
4045a87b
...
...
@@ -39,4 +39,17 @@ ALTER TABLE v1 EXCHANGE PARTITION p2 WITH TABLE t2 ;
DROP
VIEW
v1
;
DROP
TABLE
t1
,
t2
;
--
echo
#
--
echo
# MDEV-25102 UNIQUE USING HASH error after ALTER ... DISABLE KEYS
--
echo
#
create
table
t1
(
i1
int
primary
key
,
i2
int
,
d1
date
,
key
(
i2
))
partition
by
hash
(
i1
)
partitions
3
;
insert
into
t1
values
(
0
,
1
,
'2010-10-10'
);
select
index_name
,
comment
from
information_schema
.
statistics
where
table_schema
=
'test'
and
table_name
=
't1'
;
alter
table
t1
disable
keys
;
select
index_name
,
comment
from
information_schema
.
statistics
where
table_schema
=
'test'
and
table_name
=
't1'
;
alter
table
t1
add
partition
(
partition
p4
);
select
index_name
,
comment
from
information_schema
.
statistics
where
table_schema
=
'test'
and
table_name
=
't1'
;
drop
table
t1
;
--
echo
# End of 10.5 tests
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