X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FSybase%2FMSSQL.pm;h=aeb6aab20aa0006585eeb522cf403004967121f6;hb=0c11ad0ee5c8407f6b87d6e15c62a1b445076dc0;hp=81222e93c9f021abdd81ac728e5c9a0a0a7fcee5;hpb=3520183497fd1ee92daf6c52d79f2bb9b6e99691;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/Sybase/MSSQL.pm b/lib/DBIx/Class/Storage/DBI/Sybase/MSSQL.pm index 81222e9..aeb6aab 100644 --- a/lib/DBIx/Class/Storage/DBI/Sybase/MSSQL.pm +++ b/lib/DBIx/Class/Storage/DBI/Sybase/MSSQL.pm @@ -3,15 +3,32 @@ package DBIx::Class::Storage::DBI::Sybase::MSSQL; use strict; use warnings; -use Class::C3; -use base qw/DBIx::Class::Storage::DBI::MSSQL DBIx::Class::Storage::DBI::Sybase/; +use DBIx::Class::Carp; + +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::Sybase::Microsoft_SQL_Server/; +use mro 'c3'; 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 @@ -20,14 +37,9 @@ This subclass supports MSSQL connected via L. $schema->storage_type('::DBI::Sybase::MSSQL'); $schema->connect_info('dbi:Sybase:....', ...); -=head1 BUGS - -Currently, this doesn't work right unless you call C -after connecting. - -=head1 AUTHORS +=head1 AUTHOR AND CONTRIBUTORS -Brandon L Black +See L and L in DBIx::Class =head1 LICENSE