[Dbix-class] DBIx how to update_or_create a table with primary index is autoincrement ? getting erroneous data

Ronald J Kimball rkimball at pangeamedia.com
Thu Sep 27 18:03:50 GMT 2012


Yes, that is correct.  For update_or_create() to work, it needs a way to
find the original row, if it exists.

Ronald

On Thu, Sep 27, 2012 at 1:40 PM, Rajeev Prasad <rp.neuli at yahoo.com> wrote:

> so far, I do not, but I want one filed to be uniq, lets call it field1. so
> should i set a uniq constraint on it, and then use that field in
> update_or_create? rather than the primary index?
>
> ty.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20120927/e50=
c1fcc/attachment.htm


More information about the DBIx-Class mailing list