X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F747mssql_ado.t;h=3fd7af68e8e6716fc7d6734dd55444b6ca61fe05;hb=13ad6d2a9f92ee1fd3baf4921643901055b26b62;hp=77a88dc4f062c995602c765a3fde6277b25d3cd5;hpb=2edf33525bc7be0824693925c528791d84db98aa;p=dbsrgits%2FDBIx-Class.git diff --git a/t/747mssql_ado.t b/t/747mssql_ado.t index 77a88dc..3fd7af6 100644 --- a/t/747mssql_ado.t +++ b/t/747mssql_ado.t @@ -223,9 +223,7 @@ is $row->artistid, $current_artistid+1, my $rs = $schema->resultset('VaryingMAX'); foreach my $size (qw/small large/) { - my $orig_debug = $schema->storage->debug; - - $schema->storage->debug(0) if $size eq 'large'; + local $schema->storage->{debug} = 0 if $size eq 'large'; my $str = $binstr{$size}; my $row; @@ -242,8 +240,6 @@ foreach my $size (qw/small large/) { cmp_ok try { $row->varchar_max }, 'eq', $str, 'VARCHAR(MAX) matches'; cmp_ok try { $row->nvarchar_max }, 'eq', $str, 'NVARCHAR(MAX) matches'; cmp_ok try { $row->varbinary_max }, 'eq', $str, 'VARBINARY(MAX) matches'; - - $schema->storage->debug($orig_debug); } # test regular blobs