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

Lee Goddard leegee at gmail.com
Sun Oct 12 10:10:11 BST 2008


Peter Rabbitson wrote:
> {
>    ...
>    on_connect_do => [q/SET SQL_MODE = 'TRADITIONAL'/, q/SET
> SQL_AUTO_IS_NULL = 0/],
>    ...
> }
>   

Thanks Peter, and Ash and Stephen too -- it was the limited index 
length. I found that a 255-character string was fine, but 256 wasn't, 
then it became clear.

Cheers
Lee




More information about the DBIx-Class mailing list