X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FODBC%2FMicrosoft_SQL_Server.pm;fp=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FODBC%2FMicrosoft_SQL_Server.pm;h=4ee00eb8edf7301e9b92e21dd15e5d21ee7bdec0;hb=ddcc02d14d03169c54c65db9f0f446836483ba55;hp=17131388892cf3b852d8a4b578ffcfcd61950882;hpb=db83437ef48f4571e1d225572cc7235eb5e64fe3;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/ODBC/Microsoft_SQL_Server.pm b/lib/DBIx/Class/Storage/DBI/ODBC/Microsoft_SQL_Server.pm index 1713138..4ee00eb 100644 --- a/lib/DBIx/Class/Storage/DBI/ODBC/Microsoft_SQL_Server.pm +++ b/lib/DBIx/Class/Storage/DBI/ODBC/Microsoft_SQL_Server.pm @@ -9,6 +9,7 @@ use base qw/ use mro 'c3'; use Scalar::Util 'reftype'; use Try::Tiny; +use DBIx::Class::_Util 'dbic_internal_try'; use DBIx::Class::Carp; use namespace::clean; @@ -227,7 +228,7 @@ sub _run_connection_actions { !!$self->_using_dynamic_cursors ) { if ($use_dyncursors) { - try { + dbic_internal_try { my $dbh = $self->_dbh; local $dbh->{RaiseError} = 1; local $dbh->{PrintError} = 0;