Bug #13440 Partitions: crash if replace statement
Submitted: 23 Sep 2005 17:39 Modified: 20 Jan 2006 9:49
Reporter: Peter Gulutzan Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Partitions Severity:S3 (Non-critical)
Version:5.1.2-alpha-debug OS:Linux (SUSE 9.2)
Assigned to: Mikael Ronström CPU Architecture:Any

[23 Sep 2005 17:39] Peter Gulutzan
The statement "REPLACE table_name SET column_name = value"
causes a crash on a partitioned table.

How to repeat:
mysql> create table tpax (s1 int, unique (s1)) engine=innodb partition by list (s1) (partition x1 VALUES in (10), partitionx2 values in (20));
Query OK, 0 rows affected (0.01 sec)

mysql> replace tpax set s1 = 4;
ERROR 2013 (HY000): Lost connection to MySQL server during query
[1 Nov 2005 22:23] Mikael Ronström
Overuse of unsigned integer is not always recommended
Stumbled on an edge case where int type was needed
[19 Jan 2006 9:05] Mikael Ronström
Patch pushed and will appear in 5.1.6
[20 Jan 2006 9:49] 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

Additional info:

Documented bugfix in 5.1.6 changelog. Closed.