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
97a5d259
Commit
97a5d259
authored
Dec 14, 2009
by
Alexey Kopytov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge test fix for bug #42849.
parent
6fd71b12
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
mysql-test/r/partition.result
mysql-test/r/partition.result
+6
-6
mysql-test/t/partition.test
mysql-test/t/partition.test
+3
-3
No files found.
mysql-test/r/partition.result
View file @
97a5d259
...
...
@@ -24,8 +24,8 @@ a timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
b varchar(10),
PRIMARY KEY (a)
)
PARTITION BY RANGE (
to_days
(a)) (
PARTITION p1 VALUES LESS THAN (
733407
),
PARTITION BY RANGE (
UNIX_TIMESTAMP
(a)) (
PARTITION p1 VALUES LESS THAN (
1199134800
),
PARTITION pmax VALUES LESS THAN MAXVALUE
);
INSERT INTO t1 VALUES ('2007-07-30 17:35:48', 'p1');
...
...
@@ -37,7 +37,7 @@ a b
2009-07-14 17:35:55 pmax
2009-09-21 17:31:42 pmax
ALTER TABLE t1 REORGANIZE PARTITION pmax INTO (
PARTITION p3 VALUES LESS THAN (
733969
),
PARTITION p3 VALUES LESS THAN (
1247688000
),
PARTITION pmax VALUES LESS THAN MAXVALUE);
SELECT * FROM t1;
a b
...
...
@@ -51,9 +51,9 @@ t1 CREATE TABLE `t1` (
`b` varchar(10) DEFAULT NULL,
PRIMARY KEY (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE (
to_days
(a))
(PARTITION p1 VALUES LESS THAN (
733407
) ENGINE = MyISAM,
PARTITION p3 VALUES LESS THAN (
733969
) ENGINE = MyISAM,
/*!50100 PARTITION BY RANGE (
UNIX_TIMESTAMP
(a))
(PARTITION p1 VALUES LESS THAN (
1199134800
) ENGINE = MyISAM,
PARTITION p3 VALUES LESS THAN (
1247688000
) ENGINE = MyISAM,
PARTITION pmax VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */
DROP TABLE t1;
create table t1 (a int NOT NULL, b varchar(5) NOT NULL)
...
...
mysql-test/t/partition.test
View file @
97a5d259
...
...
@@ -53,8 +53,8 @@ CREATE TABLE t1 (
b
varchar
(
10
),
PRIMARY
KEY
(
a
)
)
PARTITION
BY
RANGE
(
to_days
(
a
))
(
PARTITION
p1
VALUES
LESS
THAN
(
733407
),
PARTITION
BY
RANGE
(
UNIX_TIMESTAMP
(
a
))
(
PARTITION
p1
VALUES
LESS
THAN
(
1199134800
),
PARTITION
pmax
VALUES
LESS
THAN
MAXVALUE
);
...
...
@@ -64,7 +64,7 @@ INSERT INTO t1 VALUES ('2009-09-21 17:31:42', 'pmax');
SELECT
*
FROM
t1
;
ALTER
TABLE
t1
REORGANIZE
PARTITION
pmax
INTO
(
PARTITION
p3
VALUES
LESS
THAN
(
733969
),
PARTITION
p3
VALUES
LESS
THAN
(
1247688000
),
PARTITION
pmax
VALUES
LESS
THAN
MAXVALUE
);
SELECT
*
FROM
t1
;
SHOW
CREATE
TABLE
t1
;
...
...
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