Working blind, I think this must actually due to the auto-increment coming back as a string instead of an integer.
Fix is changing:
return $seq_array[0];
to:
return intval($seq_array[0]);
in the driver.
LIKE was probably required for comparisons on blob fields or something like that at the time of the driver development, so I'd prefer to keep that. But regardless Composr tries to be type-strict, so shouldn't be doing a string compare anyway.
Fix is changing:
return $seq_array[0];
to:
return intval($seq_array[0]);
in the driver.