Bill Crawford wrote:
On 24 September 2010 15:40, Peter Rabbitson <[email protected]> wrote:
attempt insert
if exception - attempt select
if nothing found attempt insert again so you propagate the correct
exception
while (1) {
try to create, return on success
try to update, return on success
}
Hehe, except that when you mix in exceptions it will get slightly more
involved. Anyway - when you have a moment please give it a shot and
throw us a patch.
Cheers!
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]