[svn:p5ee] r8415 - p5ee/trunk/App-Repository/lib/App

[email protected]
Newsgroups perl.cvs.p5ee
Message-ID <[email protected]>
Author: spadkins
Date: Thu Dec 21 08:01:54 2006
New Revision: 8415

Modified:
   p5ee/trunk/App-Repository/lib/App/Repository.pm

Log:
do extended summaries for expression columns as well as summable columns

Modified: p5ee/trunk/App-Repository/lib/App/Repository.pm
==============================================================================
--- p5ee/trunk/App-Repository/lib/App/Repository.pm	(original)
+++ p5ee/trunk/App-Repository/lib/App/Repository.pm	Thu Dec 21 08:01:54 2006
@@ -2905,7 +2905,7 @@
                 }
             }
             if ($ext_summaries) {
-                foreach $i (@$sum_column_idx) {
+                foreach $i (@$sum_column_idx, @$expr_column_idx) {
                     $column = $columns->[$i];
                     $value = $row->[$i];
                     if (defined $value) {
@@ -2930,7 +2930,7 @@
         }
         if ($ext_summaries) {
             my ($count, $sum, $sum_sq, $num, $median_count, $median, $mode_count, $mode);
-            foreach $i (@$sum_column_idx) {
+            foreach $i (@$sum_column_idx, @$expr_column_idx) {
                 $column = $columns->[$i];
                 $ext_column_summary = $ext_summaries->{$column};
                 if ($ext_column_summary && $ext_column_summary->{count}) {
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.