X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FSybase.pm;h=6fb0521fed9d372cc56376b909892038b45f4e88;hb=57a9fc92e7f892fa0bf37a537ec835000d087c85;hp=92a482fdf8b2bcffcdfe200630c94cd64d182902;hpb=f671b6308c4f2210255b2eaa12fc47a49621d436;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/Sybase.pm b/lib/DBIx/Class/Schema/Loader/DBI/Sybase.pm index 92a482f..6fb0521 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/Sybase.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/Sybase.pm @@ -187,10 +187,11 @@ sub _table_fk_info_builder { } sub _table_uniq_info { + no warnings 'uninitialized'; # for presumably XS weirdness with null operations my ($self, $table) = @_; - # FIXME - remove blind mask (can't test sybase yet) - local $SIG{__WARN__} = sub {}; + local $SIG{__WARN__} = sub { warn @_ + unless $_[0] =~ /^Formula for Calculation:|^(?:--?|\+|=) Number of (?:self )?references|^Total Number of Referential Constraints|^Details:|^\s*$/ }; my $dbh = $self->schema->storage->dbh; local $dbh->{FetchHashKeyName} = 'NAME_lc'; @@ -335,3 +336,4 @@ the same terms as Perl itself. =cut 1; +# vim:et sts=4 sw=4 tw=0: