Mapper::validate is checking uniqueness, followed by if $v->validate().
It should fire validate() first, the Unique-check Query also requires valid entries to succeed. In my case I had a empty string in an integer field and wondered why I got Select Query failure when inserting a fresh object.
Mapper::validate is checking uniqueness, followed by if $v->validate().
It should fire validate() first, the Unique-check Query also requires valid entries to succeed. In my case I had a empty string in an integer field and wondered why I got Select Query failure when inserting a fresh object.