Bug #15524 partitioning range/list violation error message is insufficient
Submitted: 6 Dec 2005 15:56 Modified: 20 Dec 2005 14:04
Reporter: Kolbe Kegel Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Partitions Severity:S3 (Non-critical)
Version:5.1.3 OS:Linux (Linux)
Assigned to: Alexey Botchkov CPU Architecture:Any

[6 Dec 2005 15:56] Kolbe Kegel
Description:
The error message issued by the MySQL server when a value cannot exist given a particular partition definition is insufficiently descriptive.

How to repeat:
DROP TABLE IF EXISTS t1;

CREATE TABLE t1 ( a int ) PARTITION BY RANGE (a) (PARTITION p1 VALUES LESS THAN (5) );

insert into t1 values (10);
-- ERROR 1030 (HY000): Got error 1 from storage engine

Suggested fix:
"Got error 1" does not give the user enough information to be able to resolve the issue. The server should return a more descriptive error message.
[13 Dec 2005 7:46] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/99
[15 Dec 2005 11:48] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/174
[20 Dec 2005 14:04] Jon Stephens
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Documented in 5.1.4 changelog. Closed.