Move SQL debug to Execute

This commit is contained in:
Isaac Connor 2016-01-13 09:02:37 -05:00
parent f1831383da
commit 7700623b16
1 changed files with 1 additions and 1 deletions

View File

@ -127,6 +127,7 @@ sub Execute {
while( my $event = $sth->fetchrow_hashref() ) { while( my $event = $sth->fetchrow_hashref() ) {
push @results, $event; push @results, $event;
} }
Debug($sql . ' returned ' . @results . ' events.' );
$sth->finish(); $sth->finish();
return @results; return @results;
} }
@ -359,7 +360,6 @@ sub Sql {
{ {
$sql .= " limit 0,".$filter_expr->{limit}; $sql .= " limit 0,".$filter_expr->{limit};
} }
Debug( "SQL:$sql\n" );
$self->{Sql} = $sql; $self->{Sql} = $sql;
} # end if has Sql } # end if has Sql
return $self->{Sql}; return $self->{Sql};