X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FODBC%2FFirebird.pm;h=1d549e856a1f590ad87e28cf0856ddd384cf85dd;hb=d8cf3aa31fb3d6ff7813f021fcc002663725fc41;hp=095f41663f1d483be22dc6ddd83ab44a27177f9b;hpb=e5a62c46fad7960d70c8f7a825e7b10ff6ecf5c6;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/ODBC/Firebird.pm b/lib/DBIx/Class/Storage/DBI/ODBC/Firebird.pm index 095f416..1d549e8 100644 --- a/lib/DBIx/Class/Storage/DBI/ODBC/Firebird.pm +++ b/lib/DBIx/Class/Storage/DBI/ODBC/Firebird.pm @@ -7,7 +7,7 @@ use base qw/ DBIx::Class::Storage::DBI::Firebird::Common /; use mro 'c3'; -use Try::Tiny; +use DBIx::Class::_Util qw( dbic_internal_try dbic_internal_catch ); use namespace::clean; =head1 NAME @@ -48,10 +48,10 @@ sub _exec_svp_release { 1 } sub _exec_svp_rollback { my ($self, $name) = @_; - try { + dbic_internal_try { $self->_dbh->do("ROLLBACK TO SAVEPOINT $name") } - catch { + dbic_internal_catch { # Firebird ODBC driver bug, ignore if (not /Unable to fetch information about the error/) { $self->throw_exception($_); @@ -59,13 +59,20 @@ sub _exec_svp_rollback { }; } -=head1 AUTHOR +=head1 FURTHER QUESTIONS? -See L and L. +Check the list of L. -=head1 LICENSE +=head1 COPYRIGHT AND LICENSE + +This module is free software L +by the L. You can +redistribute it and/or modify it under the same terms as the +L. -You may distribute this code under the same terms as Perl itself. =cut + # vim:sts=2 sw=2: + +1;