freebsd-ports/databases/p5-SQL-Translator/files/5.005_03-patch-lib::SQL::Translator::Schema::Table.pm
Mathieu Arnold d806b7b030 Now works with stock perl 5.005_03
PR:		66431
Submitted by:	Lars Thegler <lars@thegler.dk> (maintainer)
2004-05-10 13:21:29 +00:00

11 lines
436 B
Perl

--- lib/SQL/Translator/Schema/Table.pm.orig Sun May 9 19:09:06 2004
+++ lib/SQL/Translator/Schema/Table.pm Sun May 9 19:09:30 2004
@@ -104,7 +104,7 @@
my $constraint_class = 'SQL::Translator::Schema::Constraint';
my $constraint;
- if ( UNIVERSAL::isa( $_[0], $constraint_class ) ) {
+ if ( UNIVERSAL::isa( $_[0]||'', $constraint_class ) ) {
$constraint = shift;
$constraint->table( $self );
}