FYI - my workaround was to leave the 'id' field alone and create a new
"id_clause" field that I will populate with data.
The query fails if the 'id' field is deleted from the MySQL table OR
if I try to assign a value to the id property of a bean ($clause->id =
111 ;).
So the 'id' field of the table just stays as NULL values and is not
part of the primary key.
'CREATE TABLE `clause` (
`library` varchar(45) NOT NULL,
`xml` longtext,
`id_clause` varchar(45) NOT NULL DEFAULT '''',
`id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id_clause`,`library`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8'