Bug #85314 Error in PARTITION BY RANGE COLUMNS example

Submitted: 6 Mar 2017 3:04 Modified: 7 Mar 2017 14:50
Reporter: Roel Van de Paar Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Documentation Severity:S1 (Critical)
Version:5.5+ OS:Any
Assigned to: Jon Stephens CPU Architecture:Any

[6 Mar 2017 3:04] Roel Van de Paar
Description:
The example CREATE TABLE in 'How to repeat' below, taken from the manual at: https://dev.mysql.com/doc/refman/5.7/en/create-table.html

Produces;
ERROR 1493 (HY000): VALUES LESS THAN value must be strictly increasing for each partition

Perhaps there were changes. 

How to repeat:
CREATE TABLE rc (
    a INT NOT NULL,
    b INT NOT NULL
)
PARTITION BY RANGE COLUMNS(a,b) (
    PARTITION p0 VALUES LESS THAN (10,5),
    PARTITION p1 VALUES LESS THAN (20,10),
    PARTITION p2 VALUES LESS THAN (MAXVALUE,15),
    PARTITION p3 VALUES LESS THAN (MAXVALUE,MAXVALUE)
);

Suggested fix:
Fix manual
[6 Mar 2017 5:11] MySQL Verification Team
Hello Roel,

Thank you for the report and feedback.

Thanks,
Umesh
[7 Mar 2017 14:50] Jon Stephens
Fixed in 5.5+ docs, in mysqldoc rev 51104.

Closed.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.