Commit 88077233 authored by Ruslan Zakirov's avatar Ruslan Zakirov
Browse files

apply transaction date search only if it's FTS

parent 32b17991
......@@ -254,8 +254,10 @@ if ( $q ) {
. "OR ContentType = 'text' "
. "OR ContentType = 'text/html' )"
. " AND Content LIKE '$q'";
# apply transaction date search only if it's FTS as otherwise
# it can ruin performance of mysql optimizer rather than help
$query = "( $query ) AND TransactionDate > '". $now->ISO ."'"
}
$query = "( $query ) AND TransactionDate > '". $now->ISO ."'";
my ($val, $msg) = $session{'tickets'}->FromSQL( $query );
$RT::Logger->warning( $msg ) unless $val;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment