Bare 'return;' is context sensitive already, and non-existing hash
elements return undef.
}
else {
$self->error('No procedures');
- return wantarray ? () : undef;
+ return;
}
}
}
else {
$self->error('No tables');
- return wantarray ? () : undef;
+ return;
}
}
}
else {
$self->error('No triggers');
- return wantarray ? () : undef;
+ return;
}
}
}
else {
$self->error('No views');
- return wantarray ? () : undef;
+ return;
}
}
my $extra = $self->$orig;
if (@_==1) {
- return exists($extra->{$_[0]}) ? $extra->{$_[0]} : undef ;
+ return $extra->{$_[0]};
}
elsif (@_) {
my %args = @_;
}
else {
$self->error('No constraints');
- return wantarray ? () : undef;
+ return;
}
}
}
else {
$self->error('No indices');
- return wantarray ? () : undef;
+ return;
}
}
}
else {
$self->error('No fields');
- return wantarray ? () : undef;
+ return;
}
}
}
else {
$self->error('No fields');
- return wantarray ? () : undef;
+ return;
}
}