Move SQL debug to Execute
This commit is contained in:
parent
f1831383da
commit
7700623b16
|
@ -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};
|
||||||
|
|
Loading…
Reference in New Issue