Author: spadkins
Date: Fri Mar 10 10:37:40 2006
New Revision: 3655
Modified:
p5ee/trunk/App-Repository/lib/App/Repository/DBI.pm
Log:
fix bug in what determines when a dbexpr is already an aggregation
Modified: p5ee/trunk/App-Repository/lib/App/Repository/DBI.pm
==============================================================================
--- p5ee/trunk/App-Repository/lib/App/Repository/DBI.pm (original)
+++ p5ee/trunk/App-Repository/lib/App/Repository/DBI.pm Fri Mar 10 10:37:40 2006
@@ -967,7 +967,7 @@
else {
$summaryexpr = $column_def->{summary};
if (!defined $summaryexpr || $summaryexpr eq "") {
- if ($dbexpr && $dbexpr =~ /^(count|sum|avg|min|max)\(/) {
+ if ($dbexpr && $dbexpr =~ /\b(count|sum|avg|min|max)\(/) {
$summaryexpr = $dbexpr;
}
else {
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.