projects
/
dbsrgits/DBIx-Class.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
c2dbca6
)
make sure we get just a string
Justin Hunter [Mon, 11 May 2009 21:45:05 +0000 (21:45 +0000)]
lib/DBIx/Class/Storage/DBI.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Storage/DBI.pm
b/lib/DBIx/Class/Storage/DBI.pm
index
43533a4
..
d5eea7f
100644
(file)
--- a/
lib/DBIx/Class/Storage/DBI.pm
+++ b/
lib/DBIx/Class/Storage/DBI.pm
@@
-231,6
+231,7
@@
sub _recurse_fields {
"{ select => [ qw/" . (join ' ', @$_fields) . "/ ], distinct => 1 }";
}
else {
+ $_fields = $_fields[0] if ref $_fields eq 'ARRAY';
carp "This syntax will be deprecated in 09, please use " .
"{ group_by => '${_fields}' }" .
" or " .