my $self = shift;
$self->throw_exception(
"columns() is a read-only accessor, did you mean add_columns()?"
- ) if (@_ > 1);
+ ) if @_;
return @{$self->{_ordered_columns}||[]};
}
sub throw_exception {
my $self = shift;
- if (defined $self->schema);
+ if (defined $self->schema) {
$self->schema->throw_exception(@_);
}
else {