DBIx::Class will pass scalar refs as literal SQL, so you can do this...
$rs->find_or_create({ field1 => 55 })->update({ field2 => \'field2+1' });
| We're not surrounded, we're in a target-rich environment! |
|---|
In reply to Re: DBIx update and simultaneosly modify field
by jasonk
in thread DBIx::Class update and simultaneosly modify field
by rootcho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |