Bug #14365 Partitions: crash if value too small
Submitted: 27 Oct 2005 0:36 Modified: 20 Jan 2006 10:52
Reporter: Peter Gulutzan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Partitions Severity:S3 (Non-critical)
Version:5.1.2-alpha-debug OS:Linux (SUSE 10.0)
Assigned to: Mikael Ronström CPU Architecture:Any

[27 Oct 2005 0:36] Peter Gulutzan
Description:
I have a table with LIST partitions.
If I insert a value that's in the list, okay.
If I insert a value that's greater than anything in the list, error -- which is okay.
If I insert a value that's smaller than anything in the list, crash.

How to repeat:
mysql> create table t28 (s1 int) partition by list (s1) (partition p1 values in (2),partition p2 values in (3));
Query OK, 0 rows affected (0.00 sec)

mysql> insert into t28 values (2),(3);
Query OK, 2 rows affected (0.00 sec)
Records: 2  Duplicates: 0  Warnings: 0

mysql> insert into t28 values (4);
ERROR 1030 (HY000): Got error 1 from storage engine
mysql> insert into t28 values (1);
ERROR 2013 (HY000): Lost connection to MySQL server during query
[27 Oct 2005 2:14] Jorge del Conde
I was able to repeat this in 5.1.2bk
[1 Nov 2005 22:44] Mikael Ronström
Error in binary search, using unsigned int when signed int was needed
[19 Jan 2006 8:59] Mikael Ronström
This bug has been fixed and will appear in 5.1.6
[20 Jan 2006 10:52] 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 bugfix in 5.1.6 changelog. Closed.