From: Peter Rabbitson Date: Sun, 24 May 2009 12:12:39 +0000 (+0000) Subject: Deprecate ::DBI::Sybase::MSSQL X-Git-Tag: v0.08103~20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9c5411701b749216630298f5e9056de2ac0a30fe;p=dbsrgits%2FDBIx-Class.git Deprecate ::DBI::Sybase::MSSQL --- diff --git a/lib/DBIx/Class/Storage/DBI/Sybase/MSSQL.pm b/lib/DBIx/Class/Storage/DBI/Sybase/MSSQL.pm index f4eee43..040fac2 100644 --- a/lib/DBIx/Class/Storage/DBI/Sybase/MSSQL.pm +++ b/lib/DBIx/Class/Storage/DBI/Sybase/MSSQL.pm @@ -3,14 +3,31 @@ package DBIx::Class::Storage::DBI::Sybase::MSSQL; use strict; use warnings; +use Carp::Clan qw/^DBIx::Class/; + +carp 'Setting of storage_type is redundant as connections through DBD::Sybase' + .' are now properly recognized and reblessed into the appropriate subclass' + .' (DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server in the' + .' case of MSSQL). Please remove the explicit call to' + .q/ $schema->storage_type('::DBI::Sybase::MSSQL')/ + .', as this storage class has been deprecated in favor of the autodetected' + .' ::DBI::Sybase::Microsoft_SQL_Server'; + + use base qw/DBIx::Class::Storage::DBI::ODBC::Microsoft_SQL_Server DBIx::Class::Storage::DBI::Sybase/; 1; =head1 NAME -DBIx::Class::Storage::DBI::Sybase::MSSQL - Storage::DBI subclass for MSSQL via -DBD::Sybase +DBIx::Class::Storage::DBI::Sybase::MSSQL - (DEPRECATED) Legacy storage class for MSSQL via DBD::Sybase + +=head1 NOTE + +Connections through DBD::Sybase are now correctly recognized and reblessed +into the appropriate subclass (L +in the case of MSSQL). Please remove the explicit storage_type setting from your +schema. =head1 SYNOPSIS diff --git a/lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm b/lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm index 1c8e36d..58ac36f 100644 --- a/lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm +++ b/lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm @@ -17,10 +17,7 @@ DBD::Sybase =head1 SYNOPSIS -This subclass supports MSSQL connected via L. - - $schema->storage_type('::DBI::Sybase::Microsoft_SQL_Server'); - $schema->connect_info('dbi:Sybase:....', ...); +This subclass supports MSSQL server connections via L. =head1 CAVEATS diff --git a/t/03podcoverage.t b/t/03podcoverage.t index 1f4c5f6..edb9da6 100644 --- a/t/03podcoverage.t +++ b/t/03podcoverage.t @@ -108,6 +108,7 @@ my $exceptions = { 'DBIx::Class::Storage::DBI' => { skip => 1 }, 'DBIx::Class::Storage::DBI::DB2' => { skip => 1 }, 'DBIx::Class::Storage::DBI::MSSQL' => { skip => 1 }, + 'DBIx::Class::Storage::DBI::Sybase::MSSQL' => { skip => 1 }, 'DBIx::Class::Storage::DBI::ODBC400' => { skip => 1 }, 'DBIx::Class::Storage::DBI::ODBC::DB2_400_SQL' => { skip => 1 }, 'DBIx::Class::Storage::DBI::Oracle' => { skip => 1 },