List:Bugs« Previous MessageNext Message »
From:Michael Widenius Date:September 7 2000 9:24am
Subject:PATCH: ERROR 1034: Incorrect key file for table: 'test'.
View as plain text  
Hi!

>>>>> "Jan" == Jan Dvorak <jan.dvorak@stripped> writes:

Jan> Hi Developers,
Jan> Any progress in fixing this one?

Jan> The bug repeats on my installation
Jan> (MySQL 3.23.23 compiled from source, Linux 2.2, glibc 2.1.3).

Jan> I've found the problem goes away if:
Jan>  * If one makes index on the prefix of the TEXT column alone.
Jan> or
Jan>  * If one makes the TEXT column NOT NULL.
Jan> or
Jan>  * If one doesn't use the TEXT column in the index at all. 

Jan> Jan

Didn't you see my post about the patch for this ?

*** myisam/mi_key.c-1.7 Wed Aug 30 22:42:08 2000
--- edited/myisam/mi_key.c      Thu Sep  7 04:14:58 2000
***************
*** 283,289 ****
        uint length;
        get_key_length(length,key);
  #ifdef CHECK_KEYS
!       if (length >= keyseg->length || key+length > key_end)
        goto err;
  #endif
        memcpy(record+keyseg->start,(byte*) key, length);
--- 283,289 ----
        uint length;
        get_key_length(length,key);
  #ifdef CHECK_KEYS
!       if (length > keyseg->length || key+length > key_end)
        goto err;
  #endif
        memcpy(record+keyseg->start,(byte*) key, length);
***************
*** 294,300 ****
        uint length;
        get_key_length(length,key);
  #ifdef CHECK_KEYS
!       if (length >= keyseg->length || key+length > key_end)
        goto err;
  #endif
        memcpy(record+keyseg->start+keyseg->bit_start,
--- 294,300 ----
        uint length;
        get_key_length(length,key);
  #ifdef CHECK_KEYS
!       if (length > keyseg->length || key+length > key_end)
        goto err;
  #endif
        memcpy(record+keyseg->start+keyseg->bit_start,

Regards,
Monty
Thread
ERROR 1034: Incorrect key file for table: 'test'.Jan Dvorak6 Sep
Re: ERROR 1034: Incorrect key file for table: 'test'.Jan Dvorak6 Sep
  • PATCH: ERROR 1034: Incorrect key file for table: 'test'.Michael Widenius7 Sep