forked from percona/percona-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from percona-ysorokin/ps-8.0-bug1657941-part_t…
…able_crash Fix bug 76418 / 1657941 (Server crashes when querying partitioning table MySQL_5.7.14)
- Loading branch information
Showing
3 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
CREATE TABLE t1( | ||
id INT UNSIGNED NOT NULL, | ||
dttm DATETIME NOT NULL, | ||
PRIMARY KEY(id, dttm) | ||
) ENGINE=InnoDB | ||
PARTITION BY RANGE COLUMNS(dttm) ( | ||
PARTITION pf_201612 VALUES LESS THAN ('20170101') ENGINE=InnoDB | ||
); | ||
SELECT * FROM t1 WHERE dttm > '2017-01-19' ORDER BY id DESC; | ||
id dttm | ||
SELECT * FROM t1 WHERE dttm > '2017-01-19' ORDER BY id ASC; | ||
id dttm | ||
DROP TABLE t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# | ||
# lp:1657941 / Oracle Bug #76418 "Server crashes when querying partitioning table" | ||
# | ||
|
||
CREATE TABLE t1( | ||
id INT UNSIGNED NOT NULL, | ||
dttm DATETIME NOT NULL, | ||
PRIMARY KEY(id, dttm) | ||
) ENGINE=InnoDB | ||
PARTITION BY RANGE COLUMNS(dttm) ( | ||
PARTITION pf_201612 VALUES LESS THAN ('20170101') ENGINE=InnoDB | ||
); | ||
|
||
SELECT * FROM t1 WHERE dttm > '2017-01-19' ORDER BY id DESC; | ||
SELECT * FROM t1 WHERE dttm > '2017-01-19' ORDER BY id ASC; | ||
|
||
DROP TABLE t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters