[Dbix-class] Unexpected duplicate-key error from find_or_create

Stephen J. Butler stephen.butler at gmail.com
Sun Oct 12 02:56:18 BST 2008


On Sat, Oct 11, 2008 at 8:49 PM, Ash Berlin <ash_cpan at firemirror.com> wrote:
> What version of MySQL Server are you talking to? Some versions play silly
> buggers with indexs on varchar columns. Try running the same commands on
> mysql console.

If it's varchar then a 331 char column would silently truncate the
data on insert. That right there could be the duplicate key issue. Not
sure, however, how selects handle that case.



More information about the DBIx-Class mailing list