5 messages in com.mysql.lists.bugsupdate corrupts table.
FromSent OnAttachments
vo...@ims.at26 Jul 2001 05:14 
Sinisa Milivojevic26 Jul 2001 05:27 
Sergei Golubchik26 Jul 2001 07:41 
Jani Tolonen07 Aug 2001 01:19 
vo...@ims.at07 Aug 2001 01:58 
Subject:update corrupts table.
From:vo...@ims.at (vo@ims.at)
Date:07/26/2001 05:14:59 AM
List:com.mysql.lists.bugs

Hi everybody!

Some weeks ago I posted a problem with corrupted tables, but unfortunatly nobody answerd. Well, I'll try my luck again :) Here is the problem:

CREATE TABLE test ( gnr INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, url VARCHAR(80) DEFAULT '' NOT NULL, shortdesc VARCHAR(200) DEFAULT '' NOT NULL, longdesc text DEFAULT '' NOT NULL, description VARCHAR(80) DEFAULT '' NOT NULL, name VARCHAR(80) DEFAULT '' NOT NULL, FULLTEXT(url,description,shortdesc,longdesc), PRIMARY KEY(gnr) );

insert into test (url,shortdesc,longdesc,description,name) VALUES ("http:/test.at", "kurz", "lang","desc", "name"); insert into test (url,shortdesc,longdesc,description,name) VALUES ("http:/test.at", "kurz", "","desc", "name"); update test set url='test', description='ddd', name='nam' where gnr=2; update test set url='test', shortdesc='ggg', longdesc='mmm', description='ddd', name='nam' where gnr=2;

results in a corrupted table. (Incorrect key file for table: 'test'. Try to repair it)

I tested this at the linux (3.23.27-beta) and solaris (3.23.33) version of mysql.

Is there any patch or workaround to avoid this?

cheers Georg