Item9192: query 'notafield AND 1' evaluates as a constant, on winfdows
Priority: Normal
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
strawbeery perl 5.12 :/
sub verify_evaluatesToConstant {
my $this = shift;
my $queryParser = new Foswiki::Query::Parser();
my $query = $queryParser->parse("notafield AND 1");
my $meta = $this->{meta};
$this->assert($query->simplify( tom => $meta, data => $meta ),
"can't be a constant - we don't know what 'notafield' is without a context...");
}
which breaks the search optimisations
--
SvenDowideit - 24 Jun 2010
I reverted 7902, because it broke the query tests.
--
CrawfordCurrie - 24 Jun 2010
unit tests still pass, closing (the reversion shows the code is ok still)
--
SvenDowideit - 10 Aug 2010