use List::Util ();
__PACKAGE__->mk_group_accessors('simple' =>
- qw/_identity _blob_log_on_update unsafe_insert/
+ qw/_identity _blob_log_on_update unsafe_insert _insert_dbh/
);
=head1 NAME
$self->_dbh->do('SET CHAINED ON');
}
}
+
+ $self->_insert_dbh($self->_connect(@{ $self->_dbi_connect_info }));
}
=head2 connect_call_blob_setup
my ($self, $type) = @_;
$type = lc $type;
- $type =~ s/ identity//;
+ $type =~ s/\s* identity//x;
return uc($TYPE_MAPPING{$type} || $type);
}
if (
$need_last_insert_id && !$self->unsafe_insert && !$self->{transaction_depth}
) {
+ local $self->{_dbh} = $self->_insert_dbh;
my $guard = $self->txn_scope_guard;
my $upd_cols = $self->next::method (@_);
$guard->commit;
SQL
});
-# test insert transactions when there's an active cursor
+# test insert transaction when there's an active cursor
TODO: {
- local $TODO = 'not supported yet or possibly ever';
+# local $TODO = 'not supported yet or possibly ever';
SKIP: {
skip 'not testing insert with active cursor if using unsafe_insert', 1