« Return to Thread: ATG 2006.3 with MySQL 5.x on Linux

Re: ATG 2006.3 with MySQL 5.x on Linux

by qmnonic :: Rate this Message:

Reply to Author | View in Thread

Long term solution - ensure MySQL is using INNODB instead of MYISAM.

For example, this will work:
create table if_integ_data (
        item_id varchar(40)     not null,
        descriptor      nvarchar(255)   not null,
        repository      nvarchar(255)   not null,
        state   integer not null,
        last_import     datetime        null,
        version integer not null
,constraint if_int_data_p primary key (item_id,descriptor,repository)) ENGINE = INNODB

Whereas this will cause the error -
"ERROR 1071 (42000) at line 284: Specified key was too long; max key length is
1000 bytes"
create table if_integ_data (
        item_id varchar(40)     not null,
        descriptor      nvarchar(255)   not null,
        repository      nvarchar(255)   not null,
        state   integer not null,
        last_import     datetime        null,
        version integer not null
,constraint if_int_data_p primary key (item_id,descriptor,repository)) ENGINE = MYISAM



Awesome.  Thanks to Enrique Matta at ATG Support for that!

 « Return to Thread: ATG 2006.3 with MySQL 5.x on Linux