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
009e872b
Commit
009e872b
authored
Feb 02, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge a test case from MySQL 5.7 (no code fix needed)
parent
d4ea179e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
+55
-0
mysql-test/r/partition_innodb.result
mysql-test/r/partition_innodb.result
+27
-0
mysql-test/t/partition_innodb.test
mysql-test/t/partition_innodb.test
+28
-0
No files found.
mysql-test/r/partition_innodb.result
View file @
009e872b
...
...
@@ -900,3 +900,30 @@ SELECT b FROM t1 WHERE b = 0;
ERROR HY000: Table definition has changed, please retry transaction
disconnect con1;
DROP TABLE t1;
#
# Bug#26390658 RENAMING A PARTITIONED TABLE DOES NOT UPDATE
# MYSQL.INNODB_TABLE_STATS
#
CREATE DATABASE test_jfg;
CREATE TABLE test_jfg.test_jfg1 (id int(10) unsigned NOT NULL,PRIMARY
KEY (id)) ENGINE=InnoDB DEFAULT CHARSET=latin1 STATS_PERSISTENT=1;
CREATE TABLE test_jfg.test_jfg2 (id int(10) unsigned NOT NULL,PRIMARY
KEY (id)) ENGINE=InnoDB DEFAULT CHARSET=latin1 STATS_PERSISTENT=1
PARTITION BY RANGE ( id ) (PARTITION p1000 VALUES LESS THAN (1000)
ENGINE = InnoDB,PARTITION pmax VALUES LESS THAN MAXVALUE ENGINE =
InnoDB);
SELECT database_name, table_name FROM mysql.innodb_table_stats WHERE
database_name = 'test_jfg';
database_name table_name
test_jfg test_jfg1
test_jfg test_jfg2#P#p1000
test_jfg test_jfg2#P#pmax
RENAME TABLE test_jfg.test_jfg1 TO test_jfg.test_jfg11;
RENAME TABLE test_jfg.test_jfg2 TO test_jfg.test_jfg12;
SELECT database_name, table_name FROM mysql.innodb_table_stats WHERE
database_name = 'test_jfg';
database_name table_name
test_jfg test_jfg11
test_jfg test_jfg12#P#p1000
test_jfg test_jfg12#P#pmax
DROP DATABASE test_jfg;
mysql-test/t/partition_innodb.test
View file @
009e872b
...
...
@@ -991,3 +991,31 @@ SELECT b FROM t1 WHERE b = 0;
SELECT
b
FROM
t1
WHERE
b
=
0
;
--
disconnect
con1
DROP
TABLE
t1
;
--
echo
#
--
echo
# Bug#26390658 RENAMING A PARTITIONED TABLE DOES NOT UPDATE
--
echo
# MYSQL.INNODB_TABLE_STATS
--
echo
#
CREATE
DATABASE
test_jfg
;
CREATE
TABLE
test_jfg
.
test_jfg1
(
id
int
(
10
)
unsigned
NOT
NULL
,
PRIMARY
KEY
(
id
))
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
STATS_PERSISTENT
=
1
;
CREATE
TABLE
test_jfg
.
test_jfg2
(
id
int
(
10
)
unsigned
NOT
NULL
,
PRIMARY
KEY
(
id
))
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
STATS_PERSISTENT
=
1
PARTITION
BY
RANGE
(
id
)
(
PARTITION
p1000
VALUES
LESS
THAN
(
1000
)
ENGINE
=
InnoDB
,
PARTITION
pmax
VALUES
LESS
THAN
MAXVALUE
ENGINE
=
InnoDB
);
--
replace_result
#p# #P#
SELECT
database_name
,
table_name
FROM
mysql
.
innodb_table_stats
WHERE
database_name
=
'test_jfg'
;
RENAME
TABLE
test_jfg
.
test_jfg1
TO
test_jfg
.
test_jfg11
;
RENAME
TABLE
test_jfg
.
test_jfg2
TO
test_jfg
.
test_jfg12
;
--
replace_result
#p# #P#
SELECT
database_name
,
table_name
FROM
mysql
.
innodb_table_stats
WHERE
database_name
=
'test_jfg'
;
DROP
DATABASE
test_jfg
;
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