projects
/
dbsrgits/DBIx-Class-Historic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
db79c25
)
Fixed bad if-check in columns()
Rob Kinyon [Mon, 26 Oct 2009 19:11:22 +0000 (19:11 +0000)]
lib/DBIx/Class/ResultSource.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/ResultSource.pm
b/lib/DBIx/Class/ResultSource.pm
index
fa08fae
..
b3bb934
100644
(file)
--- a/
lib/DBIx/Class/ResultSource.pm
+++ b/
lib/DBIx/Class/ResultSource.pm
@@
-389,7
+389,7
@@
sub columns {
my $self = shift;
$self->throw_exception(
"columns() is a read-only accessor, did you mean add_columns()?"
- ) if (@_ > 1);
+ ) if @_;
return @{$self->{_ordered_columns}||[]};
}