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 {