On Wed, Mar 27, 2013 at 06:02:27AM +1100, Peter Rabbitson wrote:
From https://metacpan.org/module/DBIx::Class::Row#delete
:: If you delete an object within a txn_do() (see txn_do in
:: DBIx::Class::Storage) and the transaction subsequently fails, the
:: result object will remain marked as
On Wed, Mar 27, 2013 at 12:30:03PM +, David Cantrell wrote:
Eeuuww!
I would thunk that in_storage should be rolled back too.
How would you implement that? (as in how would the perl logic actually
look)
___
List:
On Wed, Mar 27, 2013 at 11:49:53PM +1100, Peter Rabbitson wrote:
On Wed, Mar 27, 2013 at 12:30:03PM +, David Cantrell wrote:
Eeuuww!
I would thunk that in_storage should be rolled back too.
How would you implement that? (as in how would the perl logic actually
look)
in the code that
On Wed, Mar 27, 2013 at 6:54 AM, David Cantrell da...@cantrell.org.ukwrote:
On Wed, Mar 27, 2013 at 11:49:53PM +1100, Peter Rabbitson wrote:
On Wed, Mar 27, 2013 at 12:30:03PM +, David Cantrell wrote:
Eeuuww!
I would thunk that in_storage should be rolled back too.
How would you
On Wed, Mar 27, 2013 at 01:54:00PM +, David Cantrell wrote:
On Wed, Mar 27, 2013 at 11:49:53PM +1100, Peter Rabbitson wrote:
On Wed, Mar 27, 2013 at 12:30:03PM +, David Cantrell wrote:
Eeuuww!
I would thunk that in_storage should be rolled back too.
How would you implement that?
On Mon, Mar 25, 2013 at 10:51:50PM -0700, Bill Moseley wrote:
Here's a rather contrived example:
my $artist = $schema-resultset( 'Artist' )-first;
eval {
my $guard = $schema-txn_scope_guard;
$artist-delete;
die 'rollback!';
1;
};
#$artist-in_storage(1);