Author: spadkins
Date: Sat Nov 28 06:14:33 2009
New Revision: 13617
Modified:
p5ee/trunk/App-Repository/lib/App/Repository/DBI.pm
Log:
fixed bug: _do() was reversing the profiling of nrows_read and nrows_write
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 Sat Nov 28 06:14:33 2009
@@ -2607,10 +2607,10 @@
if ($profiler) {
$context->profile_stop("db");
if ($retval && ref($retval)) {
- $context->{profile_stats}{db}{nrows_write} += ($#$retval + 1);
+ $context->{profile_stats}{db}{nrows_read} += ($#$retval + 1);
}
else {
- $context->{profile_stats}{db}{nrows_read} += $retval;
+ $context->{profile_stats}{db}{nrows_write} += $retval;
}
}
if ($debug_sql) {